51 #define BEGIN_CHAR_ATTR AttrCont_t attr
52 #define ADD_CHAR_ATTR(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) \
53 attr.push_back(CharAttr_t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16))
54 #define END_CHAR_ATTR return attr
92 typedef GLuint Char_t;
180 GLfloat horiBearingX_,
181 GLfloat horiBearingY_,
182 GLfloat horiAdvance_,
183 GLfloat vertBearingX_,
184 GLfloat vertBearingY_,
185 GLfloat vertAdvance_ ) :
196 horiBearingX (horiBearingX_),
197 horiBearingY (horiBearingY_),
198 horiAdvance (horiAdvance_),
199 vertBearingX (vertBearingX_),
200 vertBearingY (vertBearingY_),
201 vertAdvance (vertAdvance_)
206 typedef std::vector<CharAttr_t> AttrCont_t;
210 const FontAttr_t& fontAttr,
211 const AttrCont_t& charAttributes,
278 static GLS_EXPORT std::string
Key(
279 const std::string& name,
280 const std::string& style,
const AttrCont_t & CharAttributes() const
Definition: gls_font_base.h:251
GLuint ptSize
Definition: gls_font_base.h:101
GLuint maxCharHeight
Definition: gls_font_base.h:105
GLint underlinePos
Definition: gls_font_base.h:107
const FontAttr_t & Attributes() const
Definition: gls_font_base.h:218
Image * _texture
Definition: gls_font_base.h:345
GLuint PtSize() const
Definition: gls_font_base.h:302
const CharAttr_t & CharAttr(Char_t c) const
Definition: gls_font_base.h:229
Image * Texture() const
Definition: gls_font_base.h:318
GLfloat vertAdvance
Definition: gls_font_base.h:148
GLfloat vertBearingY
Definition: gls_font_base.h:147
GLuint CharAttrIndex(Char_t c) const
Definition: gls_font_base.h:241
GLfloat varTexX2
Definition: gls_font_base.h:132
GLuint underlineSize
Definition: gls_font_base.h:108
FontAttr_t _attr
Definition: gls_font_base.h:336
Char_t firstChar
Definition: gls_font_base.h:103
VertexNoColor Vector
Definition: gls_font_base.h:68
GLfloat horiBearingY
Definition: gls_font_base.h:144
GLuint descender
Definition: gls_font_base.h:102
GLfloat MaxCharWidth() const
Definition: gls_font_base.h:294
GLfloat varTexY1
Definition: gls_font_base.h:135
GLfloat MaxCharHeight() const
Definition: gls_font_base.h:286
The disti::Vertex class. A class for manipulating 3D vertices.
GLfloat fixedTexX2
Definition: gls_font_base.h:134
Attributes of the specific font.
Definition: gls_font_base.h:97
FontAttr_t()
Definition: gls_font_base.h:111
GLfloat horiBearingX
Definition: gls_font_base.h:143
GLfloat fixedTexX1
Definition: gls_font_base.h:133
GLfloat varTexX1
Definition: gls_font_base.h:131
GLfloat height
Definition: gls_font_base.h:130
CharAttr_t()
Default constructor to initialize character attribute data to known values.
Definition: gls_font_base.h:151
Definition: gls_font_man.h:63
Char_t lastChar
Definition: gls_font_base.h:104
std::string style
Definition: gls_font_base.h:100
std::string Key() const
Definition: gls_font_base.h:267
std::string _key
Definition: gls_font_base.h:342
GLfloat fixedTexY1
Definition: gls_font_base.h:137
AttrCont_t _charAttr
Definition: gls_font_base.h:339
GLfloat horiAdvance
Definition: gls_font_base.h:145
std::string Style() const
Definition: gls_font_base.h:310
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:127
GLuint maxCharWidth
Definition: gls_font_base.h:106
std::string Family() const
Definition: gls_font_base.h:259
Definition: bmpimage.h:46
GLfloat varTexY2
Definition: gls_font_base.h:136
GLfloat vertBearingX
Definition: gls_font_base.h:146
GLfloat fixedTexY2
Definition: gls_font_base.h:138
GlsFontBase(const FontAttr_t &fontAttr, const AttrCont_t &charAttributes, Image *texture)
Definition: gls_font_base.h:87