Interface IFontMetrics

IFontMetrics interface

Defines an interface for Font metrics tools.

public interface IFontMetrics

Properties

NameDescription
Ascender { get; set; }Gets ascender value of the Font in font units.
Descender { get; set; }Gets descender value of the Font in font units.
FontBBox { get; }Gets Font bounding box.
FontMatrix { get; }Gets Font transformation matrix.
IsFixedPitch { get; }True, if the Font is monospaced.
LineGap { get; }Gets LineGap value of the Font in Font units.
TypoAscender { get; set; }Gets typographic ascender value of the Font in font units.
TypoDescender { get; set; }Gets typographic descender value of the Font in Font units.
TypoLineGap { get; }Gets typographic LineGap value of the Font in Font units.
UnitsPerEM { get; set; }Gets units per em.

Methods

NameDescription
GetAscender(double)Returns ascender for specific Font size.
GetDescender(double)Returns descender for specific Font size.
GetGlyphBBox(GlyphId)Returns glyph BBox.
GetGlyphWidth(GlyphId)Returns glyph width.
GetKerningValue(GlyphId, GlyphId)Returns kerning value for the glyph pair.
GetTypoAscender(double)Returns typographic ascender for specific Font size.
GetTypoDescender(double)Returns typographic descender for specific Font size.
GetTypoLineGap(double)Returns line gap for specific Font size.
MeasureString(string, double)Measures string and returns string width.

See Also