home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / diskfont / diskfont.i < prev    next >
Text File  |  1993-10-15  |  3KB  |  104 lines

  1.     IFND    DISKFONT_DISKFONT_I
  2. DISKFONT_DISKFONT_I    SET    1
  3. **
  4. **    $VER: diskfont.i 38.0 (18.6.92)
  5. **    Includes Release 40.15
  6. **
  7. **    diskfont library definitions
  8. **
  9. **    (C) Copyright 1990 Robert R. Burns
  10. **        All Rights Reserved
  11. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. **
  14.  
  15.     IFND    EXEC_NODES_I
  16.     INCLUDE    "exec/nodes.i"
  17.     ENDC
  18.     IFND    EXEC_LISTS_I
  19.     INCLUDE    "exec/lists.i"
  20.     ENDC
  21.     IFND    GRAPHICS_TEXT_I
  22.     INCLUDE    "graphics/text.i"
  23.     ENDC
  24.  
  25. MAXFONTPATH    EQU    256    ; including null terminator
  26.  
  27.  STRUCTURE  FC,0        ; FontContents
  28.     STRUCT  fc_FileName,MAXFONTPATH
  29.     UWORD   fc_YSize
  30.     UBYTE   fc_Style
  31.     UBYTE   fc_Flags
  32.     LABEL   fc_SIZEOF
  33.  
  34.  STRUCTURE  TFC,0        ; TFontContents
  35.     STRUCT  tfc_FileName,MAXFONTPATH-2
  36.     UWORD   tfc_TagCount    ; including the TAG_DONE tag
  37.     ;
  38.     ;    if tfc_TagCount is non-zero, tfc_FileName is overlayed with
  39.     ;    Text Tags starting at:    (struct TagItem *)
  40.     ;        &tfc_FileName[MAXFONTPATH-(tfc_TagCount*sizeof(struct TagItem))]
  41.     ;
  42.     UWORD   tfc_YSize
  43.     UBYTE   tfc_Style
  44.     UBYTE   tfc_Flags
  45.     LABEL   tfc_SIZEOF
  46.  
  47.  
  48. FCH_ID        EQU    $0f00    ; FontContentsHeader, then FontContents
  49. TFCH_ID        EQU    $0f02    ; FontContentsHeader, then TFontContents
  50. OFCH_ID        EQU    $0f03    ; FontContentsHeader, then TFontContents,
  51.                 ; associated with outline font
  52.  
  53.  STRUCTURE  FCH,0        ; FontContentsHeader
  54.     UWORD   fch_FileID        ; FCH_ID or TFCH_ID
  55.     UWORD   fch_NumEntries    ; the number of FontContents elements
  56.     LABEL   fch_FC        ; the [T]FontContents elements follow here
  57.  
  58.  
  59. DFH_ID        EQU    $0f80
  60. MAXFONTNAME    EQU    32    ; font name including ".font\0"
  61.  
  62.  STRUCTURE  DiskFontHeader,0
  63.     ; the following 8 bytes are not actually considered a part of the
  64.     ; DiskFontHeader, but immediately preceed it.  The NextSegment is supplied
  65.     ; by the linker/loader, and the ReturnCode is the code at the beginning
  66.     ; of the font in case someone runs it...
  67.     ; ULONG dfh_NextSegment    ; actually a BPTR
  68.     ; ULONG dfh_ReturnCode    ; MOVEQ #0,D0 : RTS
  69.     ; here then is the official start of the DiskFontHeader...
  70.     STRUCT  dfh_DF,LN_SIZE    ; node to link disk fonts
  71.     UWORD   dfh_FileID        ; DFH_ID
  72.     UWORD   dfh_Revision    ; the font revision in this version
  73.     LONG    dfh_Segment        ; the segment address when loaded
  74.     STRUCT  dfh_Name,MAXFONTNAME ; the font name (null terminated)
  75.     STRUCT  dfh_TF,tf_SIZEOF    ; loaded TextFont structure
  76.     LABEL   dfh_SIZEOF
  77.  
  78. ; used only if dfh_TF.tf_Style FSB_TAGGED bit is set
  79. dfh_TagList    EQU    dfh_Segment    ; destroyed during loading
  80.  
  81.  
  82.     BITDEF  AF,MEMORY,0
  83.     BITDEF  AF,DISK,1
  84.     BITDEF  AF,SCALED,2
  85.     BITDEF  AF,BITMAP,3
  86.  
  87.     BITDEF  AF,TTATTR,16    ; return TAvailFonts
  88.  
  89.  STRUCTURE  AF,0        ; AvailFonts
  90.     UWORD   af_Type        ; MEMORY, DISK, or SCALED
  91.     STRUCT  af_Attr,ta_SIZEOF    ; text attributes for font
  92.     LABEL   af_SIZEOF
  93.  
  94.  STRUCTURE  TAF,0        ; TAvailFonts
  95.     UWORD   taf_Type        ; MEMORY, DISK, or SCALED
  96.     STRUCT  taf_Attr,tta_SIZEOF    ; text attributes for font
  97.     LABEL   taf_SIZEOF
  98.  
  99.  STRUCTURE  AFH,0        ; AvailFontsHeader
  100.     UWORD   afh_NumEntries    ; number of AvailFonts elements
  101.     LABEL   afh_AF        ; the [T]AvailFonts elements follow here
  102.  
  103.     ENDC    ; DISKFONT_DISKFONT_I
  104.