4 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
7 Desc: Misc definitions internal to fonts.
11 #ifndef GRAHPICS_TEXT_H
12 # include <graphics/text.h>
15 #define NUMCHARS(tf) ((tf->tf_HiChar - tf->tf_LoChar) + 2)
16 #define CTF(x) ((struct ColorTextFont *)x)
20 struct tfe_hashnode
*next
;
21 struct TextFont
*back
;
22 struct TextFontExtension
*ext
;
24 /* Color font data in chunky format */
25 UBYTE
*chunky_colorfont
;
28 struct TextFontExtension_intern
30 struct TextFontExtension tfe
;
31 struct tfe_hashnode
*hash
;
34 #define TFE_INTERN(tfe) (*(struct TextFontExtension_intern **)&tfe)
36 extern struct tfe_hashnode
*tfe_hashlookup(struct TextFont
*tf
, struct GfxBase
*GfxBase
);
38 extern void tfe_hashadd(struct tfe_hashnode
*hn
, struct TextFont
*tf
,
39 struct TextFontExtension
*etf
, struct GfxBase
*GfxBase
);
42 extern void tfe_hashdelete(struct TextFont
*tf
, struct GfxBase
*GfxBase
);
43 struct tfe_hashnode
*tfe_hashnode_create(struct GfxBase
*GfxBase
);
45 UBYTE
*colorfontbm_to_chunkybuffer(struct TextFont
*font
, struct GfxBase
*GfxBase
);
48 #endif /* FONTSUPPORT_H */