1.7.2.9
Gameface
cohtml::BitmapFontDescription Struct Reference

Struct representing bitmap font data. More...

Classes

struct  CharInfo
 Struct representing data for individual char. More...
 
struct  KerningPairInfo
 Struct representing kerning info between chars. More...
 

Public Attributes

const char * FontFamily
 The font family. More...
 
unsigned Size
 The font size in which the glyph are rasterized. In pixels. More...
 
bool IsBold
 Whether this is a bold font. More...
 
bool IsItalic
 Whether this is an italic font. More...
 
unsigned Baseline
 The baseline of the font according to the Size of the font. In pixels. More...
 
unsigned LineHeight
 The line height of the font according to the Size of the font. In pixels. More...
 
CharInfoChars
 Pointer to the char info data. More...
 
unsigned NumChars
 Number of chars in this font. More...
 
KerningPairInfoKerningPairs
 Pointer to kerning info. More...
 
unsigned NumKerningPairs
 Number of kerning pairs. More...
 

Detailed Description

Struct representing bitmap font data.

Member Data Documentation

◆ Baseline

unsigned cohtml::BitmapFontDescription::Baseline

The baseline of the font according to the Size of the font. In pixels.

◆ Chars

CharInfo* cohtml::BitmapFontDescription::Chars

Pointer to the char info data.

◆ FontFamily

const char* cohtml::BitmapFontDescription::FontFamily

The font family.

◆ IsBold

bool cohtml::BitmapFontDescription::IsBold

Whether this is a bold font.

◆ IsItalic

bool cohtml::BitmapFontDescription::IsItalic

Whether this is an italic font.

◆ KerningPairs

KerningPairInfo* cohtml::BitmapFontDescription::KerningPairs

Pointer to kerning info.

Note
Kerning info is optional. If no info is present for given pair an implicit 0 amount of kerning is used. Kerning info is needed only for pairs with amount different from 0.

◆ LineHeight

unsigned cohtml::BitmapFontDescription::LineHeight

The line height of the font according to the Size of the font. In pixels.

◆ NumChars

unsigned cohtml::BitmapFontDescription::NumChars

Number of chars in this font.

◆ NumKerningPairs

unsigned cohtml::BitmapFontDescription::NumKerningPairs

Number of kerning pairs.

◆ Size

unsigned cohtml::BitmapFontDescription::Size

The font size in which the glyph are rasterized. In pixels.