40 #ifndef _GLS_UNICODE_FONT_BASE_H
41 #define _GLS_UNICODE_FONT_BASE_H
49 class GlsUnicodeFontDBUFReader;
78 unsigned int numberOfTextures;
89 maxNumberOfGlyphsPerTexture(1)
120 GLfloat horiBearingX_,
121 GLfloat horiBearingY_,
122 GLfloat horiAdvance_,
123 GLfloat vertBearingX_,
124 GLfloat vertBearingY_,
125 GLfloat vertAdvance_,
126 unsigned int textureIndex_,
127 unsigned int glyphIndex_) :
128 CharAttr_t( w, h, vTexX1, vTexX2, fTexX1, fTexX2, vTexY1, vTexY2, fTexY1, fTexY2,
129 horiBearingX_, horiBearingY_, horiAdvance_, vertBearingX_, vertBearingY_, vertAdvance_ ),
130 textureIndex(textureIndex_),
131 glyphIndex(glyphIndex_)
136 typedef std::vector<CharAttrUnicode_t> AttrContUnicode_t;
138 typedef std::vector< Image* > ImageVector_t;
148 GLS_EXPORT
bool IsValid(
void )
const;
179 friend class GlsFontMan;
214 const unsigned int totalInlineSize,
const bool isCompressed,
unsigned long uncompressedSize );
261 GLS_EXPORT
bool IsValid(
void )
const;
274 GLS_EXPORT
void InitializeFromDBUF(
const unsigned char*
const dbufData,
const unsigned int dbufDataLength );
289 GlsUnicodeFontDBUFReader& operator=(
const GlsUnicodeFontDBUFReader &ths );
ImageVector_t _fontTextures
Definition: gls_unicode_font_base.h:183
unsigned int glyphCount
Definition: gls_unicode_font_base.h:79
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:181
bool _isValid
Definition: gls_unicode_font_base.h:184
The disti::GlsFontBase class and related classes.
unsigned int textureIndex
Definition: gls_unicode_font_base.h:99
static const unsigned short NO_GLYPH
Definition: gls_unicode_font_base.h:71
GlsFontBase::AttrCont_t GetGlsFontBaseCharAttributes(void)
GlsUnicodeFontBase::AttrContUnicode_t _charAttrUnicode
Definition: gls_unicode_font_base.h:280
unsigned short * _charAttributeIndexLUT
Definition: gls_unicode_font_base.h:187
FontAttrUnicode_t()
Definition: gls_unicode_font_base.h:86
CharAttrUnicode_t()
Definition: gls_unicode_font_base.h:103
GlsUnicodeFontBase(GlsUnicodeFontDBUFReader &dbufReader)
GlsFontBase::FontAttr_t GetGlsFontBaseFontAttributes(void)
Image * FontTextureForChar(Char_t c) const
unsigned int maxNumberOfGlyphsPerTexture
Definition: gls_unicode_font_base.h:80
Definition: gls_unicode_font_base.h:66
std::string _errMsg
Definition: gls_unicode_font_base.h:277
AttrContUnicode_t _charAttrUnicode
Definition: gls_unicode_font_base.h:182
unsigned int glyphIndex
Definition: gls_unicode_font_base.h:100
Attributes of the specific font.
Definition: gls_unicode_font_base.h:76
Attributes of the specific font.
Definition: gls_font_base.h:97
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:97
Definition: gls_unicode_font_base.h:203
GlsUnicodeFontBase::AttrContUnicode_t GetGlsUnicodeFontBaseCharAttributes(void)
GlsUnicodeFontBase::FontAttrUnicode_t _fontAttrUnicode
Definition: gls_unicode_font_base.h:279
bool _isValid
Definition: gls_unicode_font_base.h:276
~GlsUnicodeFontDBUFReader()
std::vector< Image * > GetGlsUnicodeFontBaseTextures(void)
std::vector< Image * > _fontTextures
Definition: gls_unicode_font_base.h:281
GlsUnicodeFontBase::FontAttrUnicode_t GetGlsUnicodeFontBaseFontAttributes(void)
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:127
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:186
std::string GetErrorMsg(void) const
Definition: gls_font_base.h:87