Table of Contents

Class FontChar

Namespace
Lime
Assembly
Lime.dll

Class representing the single font character and it's geometry

public class FontChar
Inheritance
FontChar
Inherited Members

Fields

ACWidths

Contains the A and C spacing of the character. The A spacing is the distance to add to the current position before drawing the character glyph. The C spacing is the distance to add to the current position to provide white space to the right of the character glyph.

[YuzuMember]
public Vector2 ACWidths

Field Value

Vector2

Char

[YuzuMember]
public char Char

Field Value

char

Height

Height of the glyph in pixels

[YuzuMember]
public float Height

Field Value

float

KerningPairs

List of kerning pairs, related to this character

[YuzuMember]
public List<KerningPair> KerningPairs

Field Value

List<KerningPair>

Null

The null-character which denotes any missing character in a font

public static FontChar Null

Field Value

FontChar

RgbIntensity

TrueType channels intensity ot grayscale

[YuzuMember]
public bool RgbIntensity

Field Value

bool

Sprite

Cached sprite reference.

public ISprite Sprite

Field Value

ISprite

SpriteIndex

Font sprite's index which contains the given glyph

[YuzuMember]
public int SpriteIndex

Field Value

int

UV0

The left-top glyph's position in the font texture

[YuzuMember]
public Vector2 UV0

Field Value

Vector2

UV1

The right-bottom glyph's position in the font texture

[YuzuMember]
public Vector2 UV1

Field Value

Vector2

VerticalOffset

Mostly stores only negative offset which is useful for chars with diacritics.

[YuzuMember]
public float VerticalOffset

Field Value

float

Width

Width of the glyph in pixels

[YuzuMember]
public float Width

Field Value

float

Properties

PaddedHeight

Height including padding from bottom and top.

public float PaddedHeight { get; }

Property Value

float

PaddedWidth

Width including padding from right and left.

public float PaddedWidth { get; }

Property Value

float

Padding

Padding from each side of glyph bounding box. Should be used in proper character positioning because glyph is rendered with padding.

[YuzuMember]
public float Padding { get; set; }

Property Value

float

Methods

Kerning(FontChar)

public float Kerning(FontChar prevChar)

Parameters

prevChar FontChar

Returns

float