Unification of "SEE ALSO" for boopsi.library
[cake.git] / rom / graphics / fontsupport.h
blobf1df49c2cb1c2059fbf9cd16bc576686c5a13e10
1 #ifndef FONTSUPPORT_H
2 #define FONTSUPPORT_H
3 /*
4 Copyright © 1995-2001, 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 /* A bitmap describing the font */
25 OOP_Object *font_bitmap;
26 /* Color font data in chunky format */
27 UBYTE *chunky_colorfont;
30 struct TextFontExtension_intern
32 struct TextFontExtension tfe;
33 struct tfe_hashnode *hash;
36 #define TFE_INTERN(tfe) (*(struct TextFontExtension_intern **)&tfe)
38 extern struct tfe_hashnode *tfe_hashlookup(struct TextFont *tf, struct GfxBase *GfxBase);
40 extern void tfe_hashadd(struct tfe_hashnode *hn, struct TextFont *tf,
41 struct TextFontExtension *etf, struct GfxBase *GfxBase);
44 extern void tfe_hashdelete(struct TextFont *tf, struct GfxBase *GfxBase);
45 struct tfe_hashnode *tfe_hashnode_create(struct GfxBase *GfxBase);
47 OOP_Object *fontbm_to_hiddbm(struct TextFont *font, struct GfxBase *GfxBase);
48 UBYTE *colorfontbm_to_chunkybuffer(struct TextFont *font, struct GfxBase *GfxBase);
51 #endif /* FONTSUPPORT_H */