struct CharacterInformation

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

Public

Fields

CharId

u32 CharId

Character ID, corresponding to a Unicode key.

Page

u32 Page

Index of the texture the character is located on.

UvX

float UvX

Texture coordinates of the character in the page texture.

UvY

float UvY

Texture coordinates of the character in the page texture.

UvWidth

float UvWidth

Width/height of the character in texture coordinates.

UvHeight

float UvHeight

Width/height of the character in texture coordinates.

Width

float Width

Width/height of the character in pixels.

Height

float Height

Width/height of the character in pixels.

XOffset

float XOffset

Offset for the visible portion of the character in pixels.

YOffset

float YOffset

Offset for the visible portion of the character in pixels.

XAdvance

float XAdvance

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

YAdvance

float YAdvance

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

PointSize

float PointSize

Size in points that the character was generated from.

May be 0 if glyph was generated using pixel width/height.

KerningPairs

Vector<KerningPair> KerningPairs

Pairs that determine if certain character pairs should be closer or father together. for example "AV" combination.

DynamicLayoutAllocation

TOptional<TreeTextureAtlasLayout::Allocation> DynamicLayoutAllocation

Handle to the character allocation in the texture atlas.

Can be used for freeing the allocation.