Struct representing user font data. Baseline is 0. More...
Classes | |
struct | CharInfo |
Struct representing data for individual char. More... | |
struct | KerningPairInfo |
Struct representing kerning info between chars. More... | |
Public Member Functions | |
UserFontDescription () | |
Public Attributes | |
Fonts::UserFontType | FontType |
The font type that's going to be used for loading and rendering. More... | |
const char * | FontFamily |
The font family. More... | |
unsigned | Size |
The font size in which the glyph are generated. In pixels. More... | |
unsigned | Spread |
The font spread size with which the glyphs are generated. It shows us how many pixels does it take to cover the [0-0.5] distance field range. In pixels. More... | |
Fonts::FontWeight | Weight |
The font weight. More... | |
bool | IsBold |
Whether this is a bold font. More... | |
bool | IsItalic |
Whether this is an italic font. More... | |
float | LineHeight |
The line height of the font according to the Size of the font. In pixels. More... | |
float | Ascent |
The ascent of the font (the distance from the baseline to the tops of the tallest glyphs). Positive number. In pixels. More... | |
float | Descent |
The descent of the font (the distance from the baseline to the bottoms of the lowest glyphs). Negative number. In pixels. More... | |
CharInfo * | Chars |
Pointer to the char info data. More... | |
unsigned | NumChars |
Number of chars in this font. More... | |
KerningPairInfo * | KerningPairs |
Pointer to kerning info. More... | |
unsigned | NumKerningPairs |
Number of kerning pairs. More... | |
Struct representing user font data. Baseline is 0.
|
inline |
float cohtml::UserFontDescription::Ascent |
The ascent of the font (the distance from the baseline to the tops of the tallest glyphs). Positive number. In pixels.
CharInfo* cohtml::UserFontDescription::Chars |
Pointer to the char info data.
float cohtml::UserFontDescription::Descent |
The descent of the font (the distance from the baseline to the bottoms of the lowest glyphs). Negative number. In pixels.
const char* cohtml::UserFontDescription::FontFamily |
The font family.
Fonts::UserFontType cohtml::UserFontDescription::FontType |
The font type that's going to be used for loading and rendering.
bool cohtml::UserFontDescription::IsBold |
Whether this is a bold font.
bool cohtml::UserFontDescription::IsItalic |
Whether this is an italic font.
KerningPairInfo* cohtml::UserFontDescription::KerningPairs |
Pointer to kerning info.
float cohtml::UserFontDescription::LineHeight |
The line height of the font according to the Size of the font. In pixels.
unsigned cohtml::UserFontDescription::NumChars |
Number of chars in this font.
unsigned cohtml::UserFontDescription::NumKerningPairs |
Number of kerning pairs.
unsigned cohtml::UserFontDescription::Size |
The font size in which the glyph are generated. In pixels.
unsigned cohtml::UserFontDescription::Spread |
The font spread size with which the glyphs are generated. It shows us how many pixels does it take to cover the [0-0.5] distance field range. In pixels.
Fonts::FontWeight cohtml::UserFontDescription::Weight |
The font weight.