39#ifndef DISTI_INCLUDED_GLS_FONT_BASE_H
40#define DISTI_INCLUDED_GLS_FONT_BASE_H
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
194 GLfloat horiBearingX_,
195 GLfloat horiBearingY_,
196 GLfloat horiAdvance_,
197 GLfloat vertBearingX_,
198 GLfloat vertBearingY_,
199 GLfloat vertAdvance_ )
293 const std::string& name,
294 const std::string& style,
Definition: gls_font_base.h:86
const CharAttr_t & CharAttr(Char_t c) const
Definition: gls_font_base.h:243
Image * Texture() const
Definition: gls_font_base.h:330
std::string Family() const
Definition: gls_font_base.h:274
std::vector< CharAttr_t > AttrCont_t
Typedef for a list of character attributes.
Definition: gls_font_base.h:220
std::string _key
Definition: gls_font_base.h:353
const FontAttr_t & Attributes() const
Definition: gls_font_base.h:232
static std::string Key(const std::string &name, const std::string &style, GLuint ptSize)
GLfloat MaxCharWidth() const
Definition: gls_font_base.h:308
GLuint Char_t
Define the character type to use.
Definition: gls_font_base.h:88
std::string Key() const
Definition: gls_font_base.h:282
const AttrCont_t & CharAttributes() const
Definition: gls_font_base.h:266
GLuint CharAttrIndex(Char_t c) const
Definition: gls_font_base.h:255
GlsFontBase(const FontAttr_t &fontAttr, const AttrCont_t &charAttributes, Image *texture)
std::string Style() const
Definition: gls_font_base.h:322
AttrCont_t _charAttr
Definition: gls_font_base.h:350
Image * _texture
Definition: gls_font_base.h:356
FontAttr_t _attr
Definition: gls_font_base.h:347
GLuint PtSize() const
Definition: gls_font_base.h:316
GLfloat MaxCharHeight() const
Definition: gls_font_base.h:300
Definition: gls_font_man.h:59
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:50
Definition: bmpimage.h:46
VertexNoColor Vector
Definition: gls_font_base.h:68
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:124
GLfloat vertBearingX
Distance from pen position (ie the center line) to the left edge of the character (varTexX1) for vert...
Definition: gls_font_base.h:142
GLfloat vertAdvance
Distance to advance the pen position after drawing this character for vertical strings.
Definition: gls_font_base.h:144
GLfloat fixedTexY2
Upper most y position in the texture for fixed height font spacing. (in texture coordinates).
Definition: gls_font_base.h:134
CharAttr_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_)
Definition: gls_font_base.h:184
GLfloat width
Character width in pixels/points.
Definition: gls_font_base.h:125
GLfloat horiBearingX
Distance from pen position to the left edge of the character (varTexX1) for horizontal strings.
Definition: gls_font_base.h:139
GLfloat varTexY1
Lowest y position in the texture for variable height font spacing. (in texture coordinates).
Definition: gls_font_base.h:131
GLfloat fixedTexX1
Left most x position in the texture for fixed width font spacing. (in texture coordinates).
Definition: gls_font_base.h:129
GLfloat horiAdvance
Distance to advance the pen position after drawing this character for horizontal strings.
Definition: gls_font_base.h:141
CharAttr_t()
Default constructor to initialize character attribute data to known values.
Definition: gls_font_base.h:147
GLfloat varTexX2
Right most x position in the texture for variable width font spacing. (in texture coordinates).
Definition: gls_font_base.h:128
GLfloat fixedTexY1
Lowest y position in the texture for fixed height font spacing. (in texture coordinates).
Definition: gls_font_base.h:133
GLfloat vertBearingY
Distance from pen position to the top edge of the character (varTexY2) for vertical strings.
Definition: gls_font_base.h:143
GLfloat horiBearingY
Distance from pen position (ie the baseline) to the top edge of the character (varTexY2) for horizont...
Definition: gls_font_base.h:140
GLfloat height
Character height in pixels/points.
Definition: gls_font_base.h:126
GLfloat fixedTexX2
Right most x position in the texture for fixed width font spacing. (in texture coordinates).
Definition: gls_font_base.h:130
GLfloat varTexX1
Left most x position in the texture for variable width font spacing. (in texture coordinates).
Definition: gls_font_base.h:127
GLfloat varTexY2
Upper most y position in the texture for variable height font spacing. (in texture coordinates).
Definition: gls_font_base.h:132
Attributes of the specific font.
Definition: gls_font_base.h:94
GLuint maxCharWidth
Maximum character width in pixels.
Definition: gls_font_base.h:102
GLuint descender
Font descender in positive pixels.
Definition: gls_font_base.h:98
GLint underlinePos
Position of the underline for underlined text.
Definition: gls_font_base.h:103
FontAttr_t()
Definition: gls_font_base.h:107
GLuint ptSize
Font point size.
Definition: gls_font_base.h:97
std::string family
Font family name. Eg. Arial.
Definition: gls_font_base.h:95
GLuint underlineSize
thickness of the underline.
Definition: gls_font_base.h:104
std::string style
Font style. Eg. Bold.
Definition: gls_font_base.h:96
Char_t lastChar
Last character code in the character set.
Definition: gls_font_base.h:100
Char_t firstChar
First character code in the character set.
Definition: gls_font_base.h:99
GLuint maxCharHeight
Maximum character height in pixels.
Definition: gls_font_base.h:101
The disti::Vertex class. A class for manipulating 3D vertices.