public class CffFontMetrics extends FontMetrics
CFF font metrics implementation
| Modifier and Type | Method and Description |
|---|---|
double |
getAscender()
Gets Ascender value.
|
double |
getDescender()
Gets Descender value.
|
FontBBox |
getFontBBox()
Gets FontBBox value.
|
TransformationMatrix |
getFontMatrix()
Gets FontMatrix value.
|
TransformationMatrix |
getFontMatrixForGlyph(GlyphId glyphId)
Calculates transformation matrix for glyph specified by id.
|
double |
getGlyphWidth(GlyphId glyphId)
Returns glyph width.
|
long |
getUnitsPerEM()
Gets UnitsPerEM value.
|
double |
measureString(String unicode,
double fontSize)
Measures string and returns string width.
|
getAscender, getDescender, getGlyphBBox, getKerningValue, getLineGap, getTypoAscender, getTypoAscender, getTypoDescender, getTypoDescender, getTypoLineGap, getTypoLineGap, isFixedPitch, setAscender, setDescender, setTypoAscender, setTypoDescender, setUnitsPerEMpublic double getAscender()
Gets Ascender value.
getAscender in interface IFontMetricsgetAscender in class FontMetricspublic double getDescender()
Gets Descender value.
getDescender in interface IFontMetricsgetDescender in class FontMetricspublic FontBBox getFontBBox()
Gets FontBBox value.
getFontBBox in interface IFontMetricsgetFontBBox in class FontMetricspublic TransformationMatrix getFontMatrix()
Gets FontMatrix value.
getFontMatrix in interface IFontMetricsgetFontMatrix in class FontMetricspublic TransformationMatrix getFontMatrixForGlyph(GlyphId glyphId)
Calculates transformation matrix for glyph specified by id.
glyphId - Glyph identifier.public long getUnitsPerEM()
Gets UnitsPerEM value.
getUnitsPerEM in interface IFontMetricsgetUnitsPerEM in class FontMetricspublic double getGlyphWidth(GlyphId glyphId)
Returns glyph width. May be overridden by specific Font encoding inheritors.
getGlyphWidth in interface IFontMetricsgetGlyphWidth in class FontMetricsglyphId - Glyph identifier.public double measureString(String unicode, double fontSize)
Measures string and returns string width.
measureString in interface IFontMetricsmeasureString in class FontMetricsunicode - Unicode string.fontSize - Font size.Copyright © 2025 Aspose. All Rights Reserved.