com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class Type1FontMetrics

  • All Implemented Interfaces:
    IFontMetrics


    public class Type1FontMetrics
    extends FontMetrics

    Represents Type1 Font metrics.

    • Method Detail

      • getWeight

        public String getWeight()

        Gets weight.

        Returns:
        Weight.
      • getItalicAngle

        public double getItalicAngle()

        Gets italic angle value.

        Returns:
        Italic angle value.
      • getUnderlinePosition

        public double getUnderlinePosition()

        Gets underline position value.

        Returns:
        Underline position value.
      • getUnderlineThickness

        public double getUnderlineThickness()

        Gets underline thickness value.

        Returns:
        Underline thickness value.
      • getCapHeight

        public double getCapHeight()

        Gets cap height value.

        Returns:
        Cap height value.
      • getXHeight

        public double getXHeight()

        Gets XHeight value.

        Returns:
        XHeight value.
      • getStdHW

        public double getStdHW()

        Gets StdHW value.

        Returns:
        StdHW value.
      • getStdVW

        public double getStdVW()

        Gets StdVW value.

        Returns:
        StdVW value.
      • getGlyphWidth

        public double getGlyphWidth(GlyphId glyphId)

        Returns glyph width. May be ovridden by specific font encoding inheritors.

        Specified by:
        getGlyphWidth in interface IFontMetrics
        Overrides:
        getGlyphWidth in class FontMetrics
        Parameters:
        glyphId - Glyph identifier.
        Returns:
        Glyph width.
      • measureString

        public double measureString(String unicode,
                                    double fontSize)

        Measures string and returns string width.

        Specified by:
        measureString in interface IFontMetrics
        Specified by:
        measureString in class FontMetrics
        Parameters:
        unicode - Unicode string.
        fontSize - Font size.
        Returns:
        String width.