public class Type1FontMetrics extends FontMetrics
Represents Type1 Font metrics.
| Modifier and Type | Method and Description |
|---|---|
double |
getAscender()
Gets ascender value.
|
double |
getCapHeight()
Gets cap height value.
|
double |
getDescender()
Gets descender value.
|
FontBBox |
getFontBBox()
Gets FontBBox value.
|
TransformationMatrix |
getFontMatrix()
Gets Font transformation matrix.
|
double |
getGlyphWidth(GlyphId glyphId)
Returns glyph width.
|
double |
getItalicAngle()
Gets italic angle value.
|
double |
getStdHW()
Gets StdHW value.
|
double |
getStdVW()
Gets StdVW value.
|
double |
getUnderlinePosition()
Gets underline position value.
|
double |
getUnderlineThickness()
Gets underline thickness value.
|
long |
getUnitsPerEM()
Gets underline UnitsPerEM value.
|
String |
getWeight()
Gets weight.
|
double |
getXHeight()
Gets XHeight value.
|
double |
measureString(String unicode,
double fontSize)
Measures string and returns string width.
|
void |
setUnitsPerEM(long value)
Sets UnitsPerEM value.
|
getAscender, getDescender, getGlyphBBox, getKerningValue, getLineGap, getTypoAscender, getTypoAscender, getTypoDescender, getTypoDescender, getTypoLineGap, getTypoLineGap, isFixedPitch, setAscender, setDescender, setTypoAscender, setTypoDescenderpublic String getWeight()
Gets weight.
public double getItalicAngle()
Gets italic angle value.
public double getUnderlinePosition()
Gets underline position value.
public double getUnderlineThickness()
Gets underline thickness value.
public double getCapHeight()
Gets cap height value.
public double getXHeight()
Gets XHeight value.
public double getAscender()
Gets ascender value.
getAscender in interface IFontMetricsgetAscender in class FontMetricspublic double getDescender()
Gets descender value.
getDescender in interface IFontMetricsgetDescender in class FontMetricspublic double getStdHW()
Gets StdHW value.
public double getStdVW()
Gets StdVW value.
public FontBBox getFontBBox()
Gets FontBBox value.
getFontBBox in interface IFontMetricsgetFontBBox in class FontMetricspublic TransformationMatrix getFontMatrix()
Gets Font transformation matrix.
getFontMatrix in interface IFontMetricsgetFontMatrix in class FontMetricspublic long getUnitsPerEM()
Gets underline UnitsPerEM value.
getUnitsPerEM in interface IFontMetricsgetUnitsPerEM in class FontMetricspublic void setUnitsPerEM(long value)
FontMetricsSets UnitsPerEM value.
setUnitsPerEM in interface IFontMetricssetUnitsPerEM in class FontMetricsvalue - UnitsPerEM value.public double getGlyphWidth(GlyphId glyphId)
Returns glyph width. May be ovridden 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.