home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / libraries / diskfont.i < prev    next >
Text File  |  1991-11-27  |  3KB  |  105 lines

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