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
Char
[YuzuMember]
public char Char
Field Value
Height
Height of the glyph in pixels
[YuzuMember]
public float Height
Field Value
KerningPairs
List of kerning pairs, related to this character
[YuzuMember]
public List<KerningPair> KerningPairs
Field Value
Null
The null-character which denotes any missing character in a font
public static FontChar Null
Field Value
RgbIntensity
TrueType channels intensity ot grayscale
[YuzuMember]
public bool RgbIntensity
Field Value
Sprite
Cached sprite reference.
public ISprite Sprite
Field Value
SpriteIndex
Font sprite's index which contains the given glyph
[YuzuMember]
public int SpriteIndex
Field Value
UV0
The left-top glyph's position in the font texture
[YuzuMember]
public Vector2 UV0
Field Value
UV1
The right-bottom glyph's position in the font texture
[YuzuMember]
public Vector2 UV1
Field Value
VerticalOffset
Mostly stores only negative offset which is useful for chars with diacritics.
[YuzuMember]
public float VerticalOffset
Field Value
Width
Width of the glyph in pixels
[YuzuMember]
public float Width
Field Value
Properties
PaddedHeight
Height including padding from bottom and top.
public float PaddedHeight { get; }
Property Value
PaddedWidth
Width including padding from right and left.
public float PaddedWidth { get; }
Property Value
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
Methods
Kerning(FontChar)
public float Kerning(FontChar prevChar)
Parameters
prevChar
FontChar