Class StandardFontMetrics


  • public class StandardFontMetrics
    extends Object
    Class provides access to metrics of a standard font.
    Author:
    Sergey Shemyakov
    • 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()