4 Copyright © 1995-2001, 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 /* 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 */