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

Describes a single character in a font of a specific size. More...

#include <CeresEngine/Text/Font.hpp>

Public Attributes

UInt32 characterID
 Character ID, corresponding to a Unicode key.
 
UInt32 page
 Index of the texture the character is located on.
 
float uvX
 Texture coordinates of the character in the page texture.
 
float uvY
 
float uvWidth
 Width/height of the character in texture coordinates.
 
float uvHeight
 
UInt32 width
 Width/height of the character in pixels.
 
UInt32 height
 
float xOffset
 Offset for the visible portion of the character in pixels.
 
float yOffset
 
float xAdvance
 Determines how much to advance the pen after writing this character, in pixels.
 
float yAdvance
 
Vector< KerningPairkerningPairs
 Pairs that determine if certain character pairs should be closer or father together.
 

Detailed Description

Describes a single character in a font of a specific size.

Member Data Documentation

◆ characterID

UInt32 CeresEngine::GlyphDescriptor::characterID

Character ID, corresponding to a Unicode key.

◆ height

UInt32 CeresEngine::GlyphDescriptor::height

◆ kerningPairs

Vector<KerningPair> CeresEngine::GlyphDescriptor::kerningPairs

Pairs that determine if certain character pairs should be closer or father together.

for example "AV" combination.

◆ page

UInt32 CeresEngine::GlyphDescriptor::page

Index of the texture the character is located on.

◆ uvHeight

float CeresEngine::GlyphDescriptor::uvHeight

◆ uvWidth

float CeresEngine::GlyphDescriptor::uvWidth

Width/height of the character in texture coordinates.

◆ uvX

float CeresEngine::GlyphDescriptor::uvX

Texture coordinates of the character in the page texture.

◆ uvY

float CeresEngine::GlyphDescriptor::uvY

◆ width

UInt32 CeresEngine::GlyphDescriptor::width

Width/height of the character in pixels.

◆ xAdvance

float CeresEngine::GlyphDescriptor::xAdvance

Determines how much to advance the pen after writing this character, in pixels.

◆ xOffset

float CeresEngine::GlyphDescriptor::xOffset

Offset for the visible portion of the character in pixels.

◆ yAdvance

float CeresEngine::GlyphDescriptor::yAdvance

◆ yOffset

float CeresEngine::GlyphDescriptor::yOffset

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