home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Amiga / emulation / d64edir.lha / inc / libraries / diskfont.h
Text File  |  1997-05-06  |  2KB  |  46 lines

  1. {$ifndef LIBRARIES_DISKFONT_H}
  2. const LIBRARIES_DISKFONT_H = 1;
  3. {$ifndef EXEC_NODES_H;incl"exec/nodes.h";endif}
  4. {$ifndef EXEC_LISTS_H;incl"exec/lists.h";endif}
  5. {$ifndef GRAPHICS_TEXT_H;incl"graphics/text.h";endif}
  6. const MAXFONTPATH = 256;
  7.       FCH_ID = $0F00;
  8.       DFH_ID = $0F80;
  9.       MAXFONTNAME = 32;
  10.       AFB_MEMORY = 0;
  11.       AFF_MEMORY = 1;
  12.       AFB_DISK = 1;
  13.       AFF_DISK = 2;
  14. Type FontContents = record
  15.                       fc_FileName: String[MAXFONTPATH];
  16.                       fc_YSize: word;
  17.                       fc_Style: byte;
  18.                       fc_Flags: byte
  19.                     end;
  20.      FontContentsHeader = record
  21.                             fch_FileID, fch_NumEntries: word
  22.                           end;
  23.      DiskFontHeader = record
  24.                         dfh_DF: Node;
  25.                         dfh_FileID, dfh_Revision: word;
  26.                         dfh_Segment: long;
  27.                         dfh_Name: String[MAXFONTNAME];
  28.                         dfh_TF: TextFont
  29.                       end;
  30.      _AvailFonts = record
  31.                      af_Type: word;
  32.                      af_Attr: TextAttr
  33.                    end;
  34.      AvailFontsHeader = record
  35.                           afh_NumEntries: word
  36.                         end;
  37. {$endif}
  38. {$ifndef LIBRARIES_DISKFONT_LIB}
  39. const LIBRARIES_DISKFONT_LIB = 0;
  40. Var DiskfontBase: Ptr;
  41. Library DiskFontBase:
  42. -30: Function OpenDiskFont(a0: p_TextAttr): p_TextFont;
  43. -36: Function AvailFonts(a0: Ptr; d0, d1: long): long
  44. end;
  45. {$endif}
  46.