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, setTypoDescender
public 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 IFontMetrics
getAscender
in class FontMetrics
public double getDescender()
Gets descender value.
getDescender
in interface IFontMetrics
getDescender
in class FontMetrics
public double getStdHW()
Gets StdHW value.
public double getStdVW()
Gets StdVW value.
public FontBBox getFontBBox()
Gets FontBBox value.
getFontBBox
in interface IFontMetrics
getFontBBox
in class FontMetrics
public TransformationMatrix getFontMatrix()
Gets Font transformation matrix.
getFontMatrix
in interface IFontMetrics
getFontMatrix
in class FontMetrics
public long getUnitsPerEM()
Gets underline UnitsPerEM value.
getUnitsPerEM
in interface IFontMetrics
getUnitsPerEM
in class FontMetrics
public void setUnitsPerEM(long value)
FontMetrics
Sets UnitsPerEM value.
setUnitsPerEM
in interface IFontMetrics
setUnitsPerEM
in class FontMetrics
value
- UnitsPerEM value.public double getGlyphWidth(GlyphId glyphId)
Returns glyph width. May be ovridden by specific font encoding inheritors.
getGlyphWidth
in interface IFontMetrics
getGlyphWidth
in class FontMetrics
glyphId
- Glyph identifier.public double measureString(String unicode, double fontSize)
Measures string and returns string width.
measureString
in interface IFontMetrics
measureString
in class FontMetrics
unicode
- Unicode string.fontSize
- Font size.