40#ifndef _GLS_UNICODE_FONT_BASE_H
41#define _GLS_UNICODE_FONT_BASE_H
48class GlsUnicodeFontDBUFReader;
136 GLfloat horiBearingX_,
137 GLfloat horiBearingY_,
138 GLfloat horiAdvance_,
139 GLfloat vertBearingX_,
140 GLfloat vertBearingY_,
141 GLfloat vertAdvance_,
142 unsigned int textureIndex_,
143 unsigned int glyphIndex_ )
144 :
CharAttr_t( w, h, vTexX1, vTexX2, fTexX1, fTexX2, vTexY1, vTexY2, fTexY1, fTexY2,
145 horiBearingX_, horiBearingY_, horiAdvance_, vertBearingX_, vertBearingY_, vertAdvance_ )
227 const unsigned int totalInlineSize,
const bool isCompressed,
unsigned long uncompressedSize );
Definition: gls_font_base.h:87
std::vector< CharAttr_t > AttrCont_t
Typedef for a list of character attributes.
Definition: gls_font_base.h:221
GLuint Char_t
Define the character type to use.
Definition: gls_font_base.h:89
Definition: gls_font_man.h:60
Definition: gls_unicode_font_base.h:66
std::vector< Image * > ImageVector_t
Typedef for a list of glyph images.
Definition: gls_unicode_font_base.h:154
ImageVector_t _fontTextures
Definition: gls_unicode_font_base.h:198
unsigned short * _charAttributeIndexLUT
Definition: gls_unicode_font_base.h:202
GlsUnicodeFontBase(GlsUnicodeFontDBUFReader &dbufReader)
const CharAttrUnicode_t & CharAttrUnicode(Char_t c) const
ImageVector_t FontTextures() const
Image * FontTextureForChar(Char_t c) const
AttrContUnicode_t _charAttrUnicode
Definition: gls_unicode_font_base.h:197
unsigned int _charAttributeIndexLUTSize
Definition: gls_unicode_font_base.h:201
FontAttrUnicode_t _fontAttrUnicode
Definition: gls_unicode_font_base.h:196
bool _isValid
Definition: gls_unicode_font_base.h:199
static const unsigned short NO_GLYPH
Definition: gls_unicode_font_base.h:69
std::vector< CharAttrUnicode_t > AttrContUnicode_t
Typedef for a list of character attributes.
Definition: gls_unicode_font_base.h:152
Definition: gls_unicode_font_base.h:217
std::vector< Image * > GetGlsUnicodeFontBaseTextures()
GlsUnicodeFontBase::FontAttrUnicode_t GetGlsUnicodeFontBaseFontAttributes()
GlsUnicodeFontDBUFReader(const unsigned char *const dbufData, const unsigned int dbufDataLength)
std::vector< Image * > _fontTextures
Definition: gls_unicode_font_base.h:293
GlsUnicodeFontBase::FontAttrUnicode_t _fontAttrUnicode
Definition: gls_unicode_font_base.h:291
void InitializeFromDBUF(const unsigned char *const dbufData, const unsigned int dbufDataLength)
std::string GetErrorMsg() const
bool _isValid
Definition: gls_unicode_font_base.h:288
std::string _errMsg
Definition: gls_unicode_font_base.h:289
~GlsUnicodeFontDBUFReader()
GlsUnicodeFontBase::AttrContUnicode_t _charAttrUnicode
Definition: gls_unicode_font_base.h:292
Image * GetGlsFontBaseTexture()
GlsUnicodeFontDBUFReader(const unsigned char *const *inlineDBUFData, const unsigned int lineLength, const unsigned int totalInlineSize, const bool isCompressed, unsigned long uncompressedSize)
GlsUnicodeFontBase::AttrContUnicode_t GetGlsUnicodeFontBaseCharAttributes()
GlsFontBase::AttrCont_t GetGlsFontBaseCharAttributes()
GlsFontBase::FontAttr_t GetGlsFontBaseFontAttributes()
The disti::GlsFontBase class and related classes.
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:125
Attributes of the specific font.
Definition: gls_font_base.h:95
Character attributes. One item for each character in the set.
Definition: gls_unicode_font_base.h:95
CharAttrUnicode_t()
Definition: gls_unicode_font_base.h:100
unsigned int glyphIndex
Definition: gls_unicode_font_base.h:97
unsigned int textureIndex
Definition: gls_unicode_font_base.h:96
CharAttrUnicode_t(GLfloat w, GLfloat h, GLfloat vTexX1, GLfloat vTexX2, GLfloat fTexX1, GLfloat fTexX2, GLfloat vTexY1, GLfloat vTexY2, GLfloat fTexY1, GLfloat fTexY2, GLfloat horiBearingX_, GLfloat horiBearingY_, GLfloat horiAdvance_, GLfloat vertBearingX_, GLfloat vertBearingY_, GLfloat vertAdvance_, unsigned int textureIndex_, unsigned int glyphIndex_)
Definition: gls_unicode_font_base.h:125
Attributes of the specific font.
Definition: gls_unicode_font_base.h:75
unsigned int numberOfTextures
The number of textures used to generate font.
Definition: gls_unicode_font_base.h:76
unsigned int maxNumberOfGlyphsPerTexture
Definition: gls_unicode_font_base.h:78
FontAttrUnicode_t()
Definition: gls_unicode_font_base.h:83
unsigned int glyphCount
The number of glyphs rendered for the font.
Definition: gls_unicode_font_base.h:77