Glyph

Glyph class

Represents a glyph

public class Glyph

Constructors

NameDescription
Glyph(int, short, short, short)Initializes new instance of this class.

Properties

NameDescription
Advance { get; set; }Advance width indicating placement for the subsequent glyph.
AdvanceOffset { get; }Horizontal (x) offset relative to glyph position. Mostly used to attach marks (like diacritics) to base characters.
AscenderOffset { get; }Vertical (y) offset relative to glyph position. Mostly used to attach marks (like diacritics) to base characters.
GlyphIndex { get; }Index of the glyph (GID) in the physical font.

Methods

NameDescription
virtual Clone()Returns a clone of this instance.
virtual GetWidth(int, float)Returns width (advance) of the glyph in points.

See Also