1.14.0.5
Hummingbird
A modern user interface library for games
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.
 
unsigned Size
 The font size in which the glyph are rasterized. In pixels.
 
bool IsBold
 Whether this is a bold font.
 
bool IsItalic
 Whether this is an italic font.
 
unsigned Baseline
 The baseline of the font according to the Size of the font. In pixels.
 
unsigned LineHeight
 The line height of the font according to the Size of the font. In pixels.
 
CharInfoChars
 Pointer to the char info data.
 
unsigned NumChars
 Number of chars in this font.
 
KerningPairInfoKerningPairs
 Pointer to kerning info. More...
 
unsigned NumKerningPairs
 Number of kerning pairs.
 

Detailed Description

Struct representing bitmap font data.

Member Data Documentation

◆ 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.