home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / diskfont / diskfont.h next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.6 KB  |  107 lines

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