1 // ---------------------------------------------------------------------------
4 // @brief Bitmaps fonts
5 // @author Philippe Decaudin - http://www.antisphere.com
6 // @license This file is part of the AntTweakBar library.
7 // Copyright © 2005, 2006 Philippe Decaudin.
8 // For conditions of distribution and use, see License.txt
10 // notes: Private header
13 // ---------------------------------------------------------------------------
16 #if !defined ANT_TW_FONTS_INCLUDED
17 #define ANT_TW_FONTS_INCLUDED
19 //#include <AntTweakBar.h>
22 A source bitmap includes 224 characters starting from ascii char 32 (i.e. space) to ascii char 255:
24 !"#$%&'()*+,-./0123456789:;<=>?
25 @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
26 `abcdefghijklmnopqrstuvwxyz{|}~
\7f
27 \80\81\82\83\84\85\86\87\88\89\8a\8b\8c\8d\8e\8f\90\91\92\93\94\95\96\97\98\99\9a\9b\9c\9d\9e\9f
28 ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿
29 ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß
30 àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
32 First column of a source bitmap is a delimiter with color=zero at the end of each line of characters.
33 Last row of a line of characters is a delimiter with color=zero at the last pixel of each character.
40 unsigned char * m_TexBytes;
41 int m_TexWidth; // power of 2
42 int m_TexHeight; // power of 2
56 CTexFont *TwGenerateFont(const unsigned char *_Bitmap, int _BmWidth, int _BmHeight);
59 extern CTexFont *g_DefaultSmallFont;
60 extern CTexFont *g_DefaultNormalFont;
61 extern CTexFont *g_DefaultLargeFont;
63 void TwGenerateDefaultFonts();
64 void TwDeleteDefaultFonts();
67 #endif // !defined ANT_TW_FONTS_INCLUDED