1 #ifndef GRAPHICS_TEXT_H
2 #define GRAPHICS_TEXT_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
13 # include <exec/ports.h>
15 #ifndef GRAPHICS_GFX_H
16 # include <graphics/gfx.h>
18 #ifndef UTILITY_TAGITEM_H
19 # include <utility/tagitem.h>
24 struct Message tf_Message
;
40 #define tf_Extension tf_Message.mn_ReplyPort
42 #define GetTextFontReplyPort(font) \
44 struct TextFontExtension * tfe; \
46 tfe = ExtendFont (font, NULL); \
48 ? tfe->tfe_OrigReplyPort \
49 : font->tf_Message.mn_ReplyPort \
53 struct TextFontExtension
59 struct TextFont
* tfe_BackPtr
;
60 struct MsgPort
* tfe_OrigReplyPort
;
61 struct TagItem
* tfe_Tags
;
63 UWORD
* tfe_OFontPatchS
;
64 UWORD
* tfe_OFontPatchK
;
68 #define TE0B_NOREMFONT 0
69 #define TE0F_NOREMFONT (1<<0)
88 /* TTextAttr specific extension */
89 struct TagItem
* tta_Tags
;
92 /* ta_Style/tta_Style */
94 #define FSB_UNDERLINED 0
95 #define FSF_UNDERLINED (1<<0)
97 #define FSF_BOLD (1<<1)
99 #define FSF_ITALIC (1<<2)
100 #define FSB_EXTENDED 3
101 #define FSF_EXTENDED (1<<3)
102 #define FSB_COLORFONT 6
103 #define FSF_COLORFONT (1<<6)
105 #define FSF_TAGGED (1<<7)
107 /* ta_Flags/tta_Flags */
108 #define FPB_ROMFONT 0
109 #define FPF_ROMFONT (1<<0)
110 #define FPB_DISKFONT 1
111 #define FPF_DISKFONT (1<<1)
112 #define FPB_REVPATH 2
113 #define FPF_REVPATH (1<<2)
114 #define FPB_TALLDOT 3
115 #define FPF_TALLDOT (1<<3)
116 #define FPB_WIDEDOT 4
117 #define FPF_WIDEDOT (1<<4)
118 #define FPB_PROPORTIONAL 5
119 #define FPF_PROPORTIONAL (1<<5)
120 #define FPB_DESIGNED 6
121 #define FPF_DESIGNED (1<<6)
122 #define FPB_REMOVED 7
123 #define FPF_REMOVED (1<<7)
126 #define TA_DeviceDPI (TAG_USER + 1)
128 #define MAXFONTMATCHWEIGHT 32767
130 struct ColorFontColors
134 UWORD
* cfc_ColorTable
;
139 struct TextFont ctf_TF
;
147 UBYTE ctf_PlaneOnOff
;
149 struct ColorFontColors
* ctf_ColorFontColors
;
151 APTR ctf_CharData
[8];
155 #define CTB_MAPCOLOR 0
156 #define CTF_MAPCOLOR (1<<0)
157 #define CT_COLORFONT (1<<0)
158 #define CT_GREYFONT (1<<1)
159 #define CT_ANTIALIAS (1<<2)
160 #define CT_COLORMASK 0x000F
167 struct Rectangle te_Extent
;
170 #endif /* GRAPHICS_TEXT_H */