Aspose::Font::IFontMetrics class

IFontMetrics class

Defines an interface for Font metrics tools.

class IFontMetrics : public virtual System::Object

Methods

MethodDescription
virtual get_Ascender()Gets ascender value of the Font in font units.
virtual get_Descender()Gets descender value of the Font in font units.
virtual get_FontBBox()Gets Font bounding box.
virtual get_FontMatrix()Gets Font transformation matrix.
virtual get_IsFixedPitch()True, if the Font is monospaced.
virtual get_LineGap()Gets LineGap value of the Font in Font units.
virtual get_TypoAscender()Gets typographic ascender value of the Font in font units.
virtual get_TypoDescender()Gets typographic descender value of the Font in Font units.
virtual get_TypoLineGap()Gets typographic LineGap value of the Font in Font units.
virtual get_UnitsPerEM()Gets units per em.
virtual GetAscender(double)Returns ascender for specific Font size.
virtual GetDescender(double)Returns descender for specific Font size.
virtual GetGlyphBBox(System::SharedPtr<Glyphs::GlyphId>)Returns glyph BBox.
virtual GetGlyphWidth(System::SharedPtr<Glyphs::GlyphId>)Returns glyph width.
virtual GetKerningValue(System::SharedPtr<Glyphs::GlyphId>, System::SharedPtr<Glyphs::GlyphId>)Returns kerning value for the glyph pair.
virtual GetTypoAscender(double)Returns typographic ascender for specific Font size.
virtual GetTypoDescender(double)Returns typographic descender for specific Font size.
virtual GetTypoLineGap(double)Returns line gap for specific Font size.
virtual MeasureString(System::String, double)Measures string and returns string width.
virtual set_Ascender(double)Gets ascender value of the Font in font units.
virtual set_Descender(double)Gets descender value of the Font in font units.
virtual set_TypoAscender(double)Gets typographic ascender value of the Font in font units.
virtual set_TypoDescender(double)Gets typographic descender value of the Font in Font units.
virtual set_UnitsPerEM(uint32_t)Gets units per em.

See Also