GL Studio C++ Runtime API
GlsUnicodeFontBase::CharAttrUnicode_t Struct Reference

Character attributes. One item for each character in the set. More...

#include <gls_unicode_font_base.h>

Inheritance diagram for GlsUnicodeFontBase::CharAttrUnicode_t:
GlsFontBase::CharAttr_t

Public Member Functions

 CharAttrUnicode_t ()
 
 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_)
 
- Public Member Functions inherited from GlsFontBase::CharAttr_t
 CharAttr_t ()
 Default constructor to initialize character attribute data to known values.
 
 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_)
 

Public Attributes

unsigned int textureIndex
 
unsigned int glyphIndex
 
- Public Attributes inherited from GlsFontBase::CharAttr_t
GLfloat width
 Character width in pixels/points.
 
GLfloat height
 Character height in pixels/points.
 
GLfloat varTexX1
 Left most x position in the texture for variable width font spacing. (in texture coordinates).
 
GLfloat varTexX2
 Right most x position in the texture for variable width font spacing. (in texture coordinates).
 
GLfloat fixedTexX1
 Left most x position in the texture for fixed width font spacing. (in texture coordinates).
 
GLfloat fixedTexX2
 Right most x position in the texture for fixed width font spacing. (in texture coordinates).
 
GLfloat varTexY1
 Lowest y position in the texture for variable height font spacing. (in texture coordinates).
 
GLfloat varTexY2
 Upper most y position in the texture for variable height font spacing. (in texture coordinates).
 
GLfloat fixedTexY1
 Lowest y position in the texture for fixed height font spacing. (in texture coordinates).
 
GLfloat fixedTexY2
 Upper most y position in the texture for fixed height font spacing. (in texture coordinates).
 
GLfloat horiBearingX
 Distance from pen position to the left edge of the character (varTexX1) for horizontal strings.
 
GLfloat horiBearingY
 Distance from pen position (ie the baseline) to the top edge of the character (varTexY2) for horizontal strings.
 
GLfloat horiAdvance
 Distance to advance the pen position after drawing this character for horizontal strings.
 
GLfloat vertBearingX
 Distance from pen position (ie the center line) to the left edge of the character (varTexX1) for vertical strings.
 
GLfloat vertBearingY
 Distance from pen position to the top edge of the character (varTexY2) for vertical strings.
 
GLfloat vertAdvance
 Distance to advance the pen position after drawing this character for vertical strings.
 

Detailed Description

Character attributes. One item for each character in the set.

Constructor & Destructor Documentation

◆ CharAttrUnicode_t() [1/2]

CharAttrUnicode_t ( )
inline

Default constructor to initialize character attribute data to known values

◆ CharAttrUnicode_t() [2/2]

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_ 
)
inline

Constructor

Parameters
wCharacter width in pixels/points.
hCharacter height in pixels/points.
vTexX1Left most x position in the texture for variable width font spacing. (in texture coordinates)
vTexX2Right most x position in the texture for variable width font spacing. (in texture coordinates)
fTexX1Left most x position in the texture for fixed width font spacing. (in texture coordinates)
fTexX2Right most x position in the texture for fixed width font spacing. (in texture coordinates)
vTexY1Lowest y position in the texture for variable height font spacing. (in texture coordinates)
vTexY2Upper most y position in the texture for variable height font spacing. (in texture coordinates)
fTexY1Lowest y position in the texture for fixed height font spacing. (in texture coordinates)
fTexY2Upper most y position in the texture for fixed height font spacing. (in texture coordinates)
horiBearingX_Distance from pen position to the left edge of the character (varTexX1) for horizontal strings.
horiBearingY_Distance from pen position (ie the baseline) to the top edge of the character (varTexY2) for horizontal strings.
horiAdvance_Distance to advance the pen position after drawing this character for horizontal strings.
vertBearingX_Distance from pen position (ie the center line) to the left edge of the character (varTexX1) for vertical strings.
vertBearingY_Distance from pen position to the top edge of the character (varTexY2) for vertical strings.
vertAdvance_Distance to advance the pen position after drawing this character for vertical strings.
textureIndex_The texture index to use for this character.
glyphIndex_The glyph index of this character.

Member Data Documentation

◆ glyphIndex

unsigned int glyphIndex

Index of the glyph. This is needed since glyphs are not assumed to be contiguous

◆ textureIndex

unsigned int textureIndex

Index of the texture that contains the glyph


The documentation for this struct was generated from the following file: