Aspose::Font::FontMetrics class

FontMetrics class

Represents Font metrics.

class FontMetrics : public Aspose::Font::IFontMetrics

Methods

MethodDescription
get_Ascender() overrideGets Ascender value.
get_Descender() overrideGets Descender value.
get_FontBBox() overrideGets FontBBox value.
get_FontMatrix() overrideGets FontMatrix value.
get_IsFixedPitch() overrideGets IsFixedPitch value.
get_LineGap() overrideGets LineGap value.
get_TypoAscender() overrideGets TypoAscender value.
get_TypoDescender() overrideGets TypoDescender value.
get_TypoLineGap() overrideGets TypoLineGap value.
get_UnitsPerEM() overrideGets UnitsPerEM value.
GetAscender(double) overrideReturns ascender for specific Font size.
GetDescender(double) overrideReturns descender for specific Font size.
GetGlyphBBox(System::SharedPtr<Glyphs::GlyphId>) overrideReturns glyph BBox. Returns FontBBox if BBox was not defined for the glyph. May be overridden by specific font encoding inheritors.
GetGlyphWidth(System::SharedPtr<Glyphs::GlyphId>) overrideReturns glyph width. May be overridden by specific font encoding inheritors.
GetKerningValue(System::SharedPtr<Glyphs::GlyphId>, System::SharedPtr<Glyphs::GlyphId>) overrideReturns kerning value for the glyph pair.
GetTypoAscender(double) overrideReturns descender for specific Font size.
GetTypoDescender(double) overrideReturns descender for specific Font size.
GetTypoLineGap(double) overrideReturns line gap for specific Font size.
virtual MeasureString(System::String, double)Measures string and returns string width.
set_Ascender(double) overrideGets Ascender value.
set_Descender(double) overrideGets Descender value.
set_TypoAscender(double) overrideGets TypoAscender value.
set_TypoDescender(double) overrideGets TypoDescender value.
set_UnitsPerEM(uint32_t) overrideGets UnitsPerEM value.

See Also