40 #ifndef _GLS_UNICODE_FONT_BASE_H
41 #define _GLS_UNICODE_FONT_BASE_H
48 class GlsUnicodeFontDBUFReader;
76 unsigned int numberOfTextures;
85 : numberOfTextures( 1 )
87 , maxNumberOfGlyphsPerTexture( 1 )
118 GLfloat horiBearingX_,
119 GLfloat horiBearingY_,
120 GLfloat horiAdvance_,
121 GLfloat vertBearingX_,
122 GLfloat vertBearingY_,
123 GLfloat vertAdvance_,
124 unsigned int textureIndex_,
125 unsigned int glyphIndex_ )
126 :
CharAttr_t( w, h, vTexX1, vTexX2, fTexX1, fTexX2, vTexY1, vTexY2, fTexY1, fTexY2,
127 horiBearingX_, horiBearingY_, horiAdvance_, vertBearingX_, vertBearingY_, vertAdvance_ )
128 , textureIndex( textureIndex_ )
129 , glyphIndex( glyphIndex_ )
134 typedef std::vector<CharAttrUnicode_t> AttrContUnicode_t;
136 typedef std::vector<Image*> ImageVector_t;
146 GLS_EXPORT
bool IsValid(
void )
const;
176 friend class GlsFontMan;
209 const unsigned int totalInlineSize,
const bool isCompressed,
unsigned long uncompressedSize );
256 GLS_EXPORT
bool IsValid(
void )
const;
268 GLS_EXPORT
void InitializeFromDBUF(
const unsigned char*
const dbufData,
const unsigned int dbufDataLength );
282 GlsUnicodeFontDBUFReader& operator=(
const GlsUnicodeFontDBUFReader& ths );
ImageVector_t _fontTextures
Definition: gls_unicode_font_base.h:180
unsigned int glyphCount
Definition: gls_unicode_font_base.h:77
Image * GetGlsFontBaseTexture(void)
ImageVector_t FontTextures(void) const
const CharAttrUnicode_t & CharAttrUnicode(Char_t c) const
FontAttrUnicode_t _fontAttrUnicode
Definition: gls_unicode_font_base.h:178
std::vector< Image * > _fontTextures
Definition: gls_unicode_font_base.h:275
bool _isValid
Definition: gls_unicode_font_base.h:181
The disti::GlsFontBase class and related classes.
unsigned int textureIndex
Definition: gls_unicode_font_base.h:97
static const unsigned short NO_GLYPH
Definition: gls_unicode_font_base.h:69
GlsFontBase::AttrCont_t GetGlsFontBaseCharAttributes(void)
std::vector< Image * > GetGlsUnicodeFontBaseTextures(void)
GlsUnicodeFontBase::AttrContUnicode_t _charAttrUnicode
Definition: gls_unicode_font_base.h:274
unsigned short * _charAttributeIndexLUT
Definition: gls_unicode_font_base.h:184
FontAttrUnicode_t()
Definition: gls_unicode_font_base.h:84
CharAttrUnicode_t()
Definition: gls_unicode_font_base.h:101
GlsUnicodeFontBase(GlsUnicodeFontDBUFReader &dbufReader)
GlsFontBase::FontAttr_t GetGlsFontBaseFontAttributes(void)
Image * FontTextureForChar(Char_t c) const
unsigned int maxNumberOfGlyphsPerTexture
Definition: gls_unicode_font_base.h:78
Definition: gls_unicode_font_base.h:65
std::string _errMsg
Definition: gls_unicode_font_base.h:271
AttrContUnicode_t _charAttrUnicode
Definition: gls_unicode_font_base.h:179
unsigned int glyphIndex
Definition: gls_unicode_font_base.h:98
Attributes of the specific font.
Definition: gls_unicode_font_base.h:74
Attributes of the specific font.
Definition: gls_font_base.h:94
void InitializeFromDBUF(const unsigned char *const dbufData, const unsigned int dbufDataLength)
Character attributes. One item for each character in the set.
Definition: gls_unicode_font_base.h:95
Definition: gls_unicode_font_base.h:198
GlsUnicodeFontBase::AttrContUnicode_t GetGlsUnicodeFontBaseCharAttributes(void)
GlsUnicodeFontBase::FontAttrUnicode_t _fontAttrUnicode
Definition: gls_unicode_font_base.h:273
bool _isValid
Definition: gls_unicode_font_base.h:270
~GlsUnicodeFontDBUFReader()
GlsUnicodeFontBase::FontAttrUnicode_t GetGlsUnicodeFontBaseFontAttributes(void)
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:124
GlsUnicodeFontDBUFReader(const unsigned char *const *inlineDBUFData, const unsigned int lineLength, const unsigned int totalInlineSize, const bool isCompressed, unsigned long uncompressedSize)
Definition: bmpimage.h:46
unsigned int _charAttributeIndexLUTSize
Definition: gls_unicode_font_base.h:183
std::string GetErrorMsg(void) const
Definition: gls_font_base.h:85