CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::FontProperties Struct Reference

#include <CeresEngine/Text/Font.hpp>

Public Attributes

String familyName
 
String styleName
 
double ascender
 The top y-coordinate, offset from the baseline, of the font’s longest ascender.
 
double descender
 The bottom y-coordinate, offset from the baseline, of the font’s longest descender.
 
double height
 
double baseline
 
HashMap< Glyph, GlyphPropertiesglyphs
 
HashMap< char32_t, GlyphcharCodeToGlyph
 

Member Data Documentation

◆ ascender

double CeresEngine::FontProperties::ascender

The top y-coordinate, offset from the baseline, of the font’s longest ascender.

The value of this property is the distance of the longest ascender’s top y-coordinate from the baseline, measured in points.

◆ baseline

double CeresEngine::FontProperties::baseline

◆ charCodeToGlyph

HashMap<char32_t, Glyph> CeresEngine::FontProperties::charCodeToGlyph

◆ descender

double CeresEngine::FontProperties::descender

The bottom y-coordinate, offset from the baseline, of the font’s longest descender.

For example, if the longest descender extends 2 points below the baseline, the value in this property is –2.

◆ familyName

String CeresEngine::FontProperties::familyName

◆ glyphs

HashMap<Glyph, GlyphProperties> CeresEngine::FontProperties::glyphs

◆ height

double CeresEngine::FontProperties::height

◆ styleName

String CeresEngine::FontProperties::styleName

The documentation for this struct was generated from the following file: