2.9.16
Coherent GT
A modern user interface library for games
Coherent::UIGT::BitmapFontDescription Struct Reference

Struct representing bitmap font data. More...

#include <Coherent/Coherent/UIGT/UISystem.h>

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* Coherent::UIGT::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.