1.26.2.1
Gameface
cohtml::UserFontDescription::CharInfo Struct Reference

Struct representing data for individual char. More...

Public Attributes

unsigned CharCode
 UTF32 char code. More...
 
float X
 X position in the texture. Texture normalized space [0, 1]. More...
 
float Y
 Y position in the texture. Texture normalized space [0, 1]. More...
 
float Width
 Width of the char in the texture. Texture normalized space [0, 1]. More...
 
float Height
 Height of the char in the texture. Texture normalized space [0, 1]. More...
 
float OffsetX
 Offset in x direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font. More...
 
float OffsetY
 Offset in y direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font. More...
 
float Advance
 Amount of pixels to advance after drawing the glyph, according to the Size of the font. More...
 
unsigned ImageIndex
 Zero based index of the image this glyph resides in. More...
 

Detailed Description

Struct representing data for individual char.

Member Data Documentation

◆ Advance

float cohtml::UserFontDescription::CharInfo::Advance

Amount of pixels to advance after drawing the glyph, according to the Size of the font.

◆ CharCode

unsigned cohtml::UserFontDescription::CharInfo::CharCode

UTF32 char code.

◆ Height

float cohtml::UserFontDescription::CharInfo::Height

Height of the char in the texture. Texture normalized space [0, 1].

◆ ImageIndex

unsigned cohtml::UserFontDescription::CharInfo::ImageIndex

Zero based index of the image this glyph resides in.

◆ OffsetX

float cohtml::UserFontDescription::CharInfo::OffsetX

Offset in x direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font.

◆ OffsetY

float cohtml::UserFontDescription::CharInfo::OffsetY

Offset in y direction, relative to the top left corner of the glyph image, applied to drawing position. In pixels according to the Size of the font.

◆ Width

float cohtml::UserFontDescription::CharInfo::Width

Width of the char in the texture. Texture normalized space [0, 1].

◆ X

float cohtml::UserFontDescription::CharInfo::X

X position in the texture. Texture normalized space [0, 1].

◆ Y

float cohtml::UserFontDescription::CharInfo::Y

Y position in the texture. Texture normalized space [0, 1].