Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / graphics / fontsupport.h
blob868559c177af104b69affaa62fff50fafd460e81
1 #ifndef FONTSUPPORT_H
2 #define FONTSUPPORT_H
3 /*
4 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
5 $Id$
7 Desc: Misc definitions internal to fonts.
8 Lang: english
9 */
11 #ifndef GRAHPICS_TEXT_H
12 # include <graphics/text.h>
13 #endif
15 #define NUMCHARS(tf) ((tf->tf_HiChar - tf->tf_LoChar) + 2)
16 #define CTF(x) ((struct ColorTextFont *)x)
18 struct tfe_hashnode
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 */