home *** CD-ROM | disk | FTP | other *** search
/ Dave Lowe: AssemPro For Development Amiga Driver / Lowe_AssemProForDevelopmentAmigaDriver.adf / Includes / libraries / diskfont.i < prev    next >
Encoding:
Text File  |  1978-06-06  |  2.3 KB  |  79 lines

  1.     IFND  LIBRARIES_DISKFONT_I@
  2. LIBRARIES_DISKFONT_I@ =   1
  3. ;*******************************************************************
  4. ;               Commodore-Amiga, Inc.                              ;
  5. ;               diskfont.i                                         ;
  6. ;*******************************************************************
  7. ;*******************************************************************
  8. ;
  9. ;  diskfont library definitions
  10. ;
  11. ;*******************************************************************
  12.  
  13.    IFND     EXEC_NODES_I@
  14.    INCLUDE     "exec/nodes.i"
  15.    ENDIF
  16.    IFND     EXEC_LISTS_I@
  17.    INCLUDE     "exec/lists.i"
  18.    ENDIF
  19.    IFND     GRAPHICS_TEXT_I@
  20.    INCLUDE     "graphics/text.i"
  21.    ENDIF
  22.  
  23. MAXFONTPATH EQU   256   ; including null terminator
  24.  
  25.  STRUCTURE  FC,0
  26.    STRUCT   fc_FileName,MAXFONTPATH
  27.    UWORD fc_YSize
  28.    UBYTE fc_Style
  29.    UBYTE fc_Flags
  30.    LABEL fc_SIZEOF
  31.  
  32. FCH_ID      EQU   $0f00
  33.  
  34.  STRUCTURE  FCH,0
  35.    UWORD fch_FileID  ; FCH_ID
  36.    UWORD fch_NumEntries ; the number of FontContents elements
  37.    LABEL fch_FC      ; the FontContents elements
  38.  
  39.  
  40. DFH_ID      EQU   $0f80
  41. MAXFONTNAME EQU   32 ; font name including ".font\0"
  42.  
  43.  STRUCTURE  DiskFontHeader,0
  44.     ; the following 8 bytes are not actually considered a part of the
  45.     ; DiskFontHeader, but immediately preceed it.  The NextSegment is supplied
  46.     ; by the linker/loader, and the ReturnCode is the code at the beginning
  47.     ; of the font in case someone runs it...
  48.     ; ULONG dfh_NextSegment   ; actually a BPTR
  49.     ; ULONG dfh_ReturnCode    ; MOVEQ #0,D0 : RTS
  50.     ; here then is the official start of the DiskFontHeader...
  51.    STRUCT   dfh_DF,LN_SIZE    ; node to link disk fonts
  52.    UWORD dfh_FileID           ; DFH_ID
  53.    UWORD dfh_Revision         ; the font revision in this version
  54.    LONG  dfh_Segment          ; the segment address when loaded
  55.    STRUCT   dfh_Name,MAXFONTNAME ; the font name (null terminated)
  56.    STRUCT   dfh_TF,tf_SIZEOF  ; loaded TextFont structure
  57.    LABEL dfh_SIZEOF
  58.  
  59.  
  60. ;   BITDEF   AF,MEMORY,0
  61. AFB_MEMORY = 0
  62. AFF_MEMORY = 1<<0
  63. ;   BITDEF   AF,DISK,1
  64. AFB_DISK = 1
  65. AFF_DISK = 1<<1
  66.  
  67.  STRUCTURE  AF,0
  68.    UWORD af_Type        ; MEMORY or DISK
  69.    STRUCT   af_Attr,ta_SIZEOF ; text attributes for font
  70.    LABEL af_SIZEOF
  71.  
  72.  STRUCTURE  AFH,0
  73.    UWORD afh_NumEntries    ; number of AvailFonts elements
  74.    LABEL afh_AF         ; the AvailFonts elements
  75.  
  76.    ENDIF
  77.    END
  78.