Package org.verapdf.pd.font.stdmetrics
Class StandardFontMetrics
- java.lang.Object
-
- org.verapdf.pd.font.stdmetrics.StandardFontMetrics
-
public class StandardFontMetrics extends Object
Class provides access to metrics of a standard font.- Author:
- Sergey Shemyakov
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetAscend()DoublegetCapHeight()StringgetCharSet()DoublegetDescend()StringgetEncodingScheme()StringgetFamilyName()double[]getFontBBox()StringgetFontName()DoublegetItalicAngle()intgetWidth(String glyphName)Gets width for glyph with given name in this font.Iterator<Map.Entry<String,Integer>>getWidthsIterator()DoublegetXHeight()voidsetXHeight(Double XHeight)
-
-
-
Method Detail
-
getWidth
public int getWidth(String glyphName)
Gets width for glyph with given name in this font. If there is no glyph with given name, gets width of .notdef glyph.- Parameters:
glyphName- is name of glyph.- Returns:
- width of this glyph or width of .notdef glyph.
-
getFontName
public String getFontName()
-
getFamilyName
public String getFamilyName()
-
getFontBBox
public double[] getFontBBox()
-
getEncodingScheme
public String getEncodingScheme()
-
getCharSet
public String getCharSet()
-
getCapHeight
public Double getCapHeight()
-
getXHeight
public Double getXHeight()
-
setXHeight
public void setXHeight(Double XHeight)
-
getAscend
public Double getAscend()
-
getDescend
public Double getDescend()
-
getItalicAngle
public Double getItalicAngle()
-
-