1 #ifndef DISKFONT_DISKFONT_H
    2 #define DISKFONT_DISKFONT_H
    3 
    4 /*
    5 	diskfont.library defines
    6 
    7 	Copyright © 2002 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef EXEC_NODES_H
   11 # include <exec/nodes.h>
   12 #endif
   13 
   14 #ifndef EXEC_LISTS_H
   15 # include <exec/lists.h>
   16 #endif
   17 
   18 #ifndef GRAPHICS_TEXT_H
   19 # include <graphics/text.h>
   20 #endif
   21 
   22 #pragma pack(2)
   23 
   24 
   25 #define MAXFONTPATH  256
   26 
   27 
   28 struct FontContents
   29 {
   30 	char  fc_FileName[MAXFONTPATH];
   31 	UWORD fc_YSize;
   32 	UBYTE fc_Style;
   33 	UBYTE fc_Flags;
   34 };
   35 
   36 struct TFontContents
   37 {
   38 	char  tfc_FileName[MAXFONTPATH-2];
   39 	UWORD tfc_TagCount;
   40 	UWORD tfc_YSize;
   41 	UBYTE tfc_Style;
   42 	UBYTE tfc_Flags;
   43 };
   44 
   45 
   46 #define FCH_ID   0x0f00
   47 #define TFCH_ID  0x0f02
   48 #define OFCH_ID  0x0f03
   49 
   50 
   51 struct FontContentsHeader
   52 {
   53 	UWORD fch_FileID;
   54 	UWORD fch_NumEntries;
   55 };
   56 
   57 
   58 #define DFH_ID  0x0f80
   59 
   60 #define MAXFONTNAME  32
   61 
   62 
   63 struct DiskFontHeader
   64 {
   65 	struct Node     dfh_DF;
   66 	UWORD           dfh_FileID;
   67 	UWORD           dfh_Revision;
   68 	LONG            dfh_Segment;
   69 	char            dfh_Name[MAXFONTNAME];
   70 	struct TextFont dfh_TF;
   71 };
   72 
   73 #define dfh_TagList  dfh_Segment
   74 
   75 
   76 #define AFB_MEMORY  0
   77 #define AFF_MEMORY  (1<<AFB_MEMORY)
   78 #define AFB_DISK    1
   79 #define AFF_DISK    (1<<AFB_DISK)
   80 #define AFB_SCALED  2
   81 #define AFF_SCALED  (1<<AFB_SCALED)
   82 #define AFB_BITMAP  3
   83 #define AFF_BITMAP  (1<<AFB_BITMAP)
   84 
   85 #define AFB_TAGGED  16
   86 #define AFF_TAGGED  (1<<AFB_TAGGED)
   87 
   88 
   89 struct AvailFonts
   90 {
   91 	UWORD           af_Type;
   92 	struct TextAttr af_Attr;
   93 };
   94 
   95 struct TAvailFonts
   96 {
   97 	UWORD            taf_Type;
   98 	struct TTextAttr taf_Attr;
   99 };
  100 
  101 struct AvailFontsHeader
  102 {
  103 	UWORD afh_NumEntries;
  104 };
  105 
  106 
  107 #pragma pack()
  108 
  109 #endif /* DISKFONT_DISKFONT_H */