Class TtfFontMetrics

TtfFontMetrics class

Represents TTF Font metrics.

public class TtfFontMetrics : FontMetrics

Properties

NameDescription
override Ascender { get; set; }Gets ascender value.
override Descender { get; set; }Gets descender value.
override FontBBox { get; }Gets FontBBox value.
override FontMatrix { get; }Gets FontBBox value.
IsFixedPitch { get; }Gets IsFixedPitch value.
override LineGap { get; }Gets LineGap value.
override TypoAscender { get; set; }Gets TypoAscender value.
override TypoDescender { get; set; }Gets TypoDescender value.
override TypoLineGap { get; }Gets TypoLineGap value.
override UnitsPerEM { get; set; }Gets UnitsPerEM value.

Methods

NameDescription
virtual GetAscender(double)Returns ascender for specific Font size.
virtual GetDescender(double)Returns descender for specific Font size.
virtual GetGlyphBBox(GlyphId)Returns glyph BBox. Returns FontBBox if BBox was not defined for the glyph. May be overridden by specific font encoding inheritors.
override GetGlyphWidth(GlyphId)Returns glyphs width by glyph id.
override GetKerningValue(GlyphId, GlyphId)Returns kerning value for the glyph pair.
virtual GetTypoAscender(double)Returns descender for specific Font size.
virtual GetTypoDescender(double)Returns descender for specific Font size.
virtual GetTypoLineGap(double)Returns line gap for specific Font size.
override MeasureString(string, double)Measures string and returns string width.
MeasureString(uint[], double)Measures text represented as array of character codes and returns string width.

See Also