added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / compiler / include / diskfont / diskfont.h
blobf975a1a7a4c802863d39905454e851065a92099f
1 #ifndef DISKFONT_DISKFONT_H
2 #define DISKFONT_DISKFONT_H
4 /*
5 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #ifndef EXEC_NODES_H
10 # include <exec/nodes.h>
11 #endif
12 #ifndef EXEC_LISTS_H
13 # include <exec/lists.h>
14 #endif
15 #ifndef GRAPHICS_TEXT_H
16 # include <graphics/text.h>
17 #endif
18 #ifndef DOS_BPTR_H
19 # include <dos/bptr.h>
20 #endif
22 #define MAXFONTPATH 256
24 struct FontContents
26 char fc_FileName[MAXFONTPATH];
27 UWORD fc_YSize;
28 UBYTE fc_Style;
29 UBYTE fc_Flags;
32 struct TFontContents
34 char tfc_FileName[MAXFONTPATH - 2];
35 UWORD tfc_TagCount;
36 UWORD tfc_YSize;
37 UBYTE tfc_Style;
38 UBYTE tfc_Flags;
41 #define FCH_ID 0x0f00
42 #define TFCH_ID 0x0f02
43 #define OFCH_ID 0x0f03
45 struct FontContentsHeader
47 UWORD fch_FileID;
48 UWORD fch_NumEntries;
51 #define DFH_ID 0x0f80
52 #define MAXFONTNAME 32
54 struct DiskFontHeader
56 struct Node dfh_DF;
57 UWORD dfh_FileID;
58 UWORD dfh_Revision;
59 BPTR dfh_Segment;
60 char dfh_Name[MAXFONTNAME];
61 struct TextFont dfh_TF;
64 #define dfh_TagList dfh_Segment
66 #define AFB_MEMORY 0
67 #define AFF_MEMORY 0x0001
68 #define AFB_DISK 1
69 #define AFF_DISK 0x0002
70 #define AFB_SCALED 2
71 #define AFF_SCALED 0x0004
72 #define AFB_BITMAP 3
73 #define AFF_BITMAP 0x0008
75 #define AFB_TAGGED 16
76 #define AFF_TAGGED 0x10000L
78 struct AvailFonts
80 UWORD af_Type;
81 struct TextAttr af_Attr;
84 struct TAvailFonts
86 UWORD taf_Type;
87 struct TTextAttr taf_Attr;
90 struct AvailFontsHeader
92 UWORD afh_NumEntries;
95 #endif