com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Interface IFontMetrics

    • Method Detail

      • isFixedPitch

        boolean isFixedPitch()

        True, if the Font is monospaced.

        Returns:
        True, if the Font is monospaced.
      • getFontBBox

        FontBBox getFontBBox()

        Gets Font bounding box.

        Returns:
        Font bounding box.
      • getFontMatrix

        TransformationMatrix getFontMatrix()

        Gets Font transformation matrix.

        Returns:
        Font transformation matrix.
      • getUnitsPerEM

        long getUnitsPerEM()

        Gets Gets units per em.

        Returns:
        Units per em.
      • setUnitsPerEM

        void setUnitsPerEM(long value)
      • getAscender

        double getAscender()

        Gets ascender value of the Font in font units.

        Returns:
        Ascender value of the Font in font units.
      • setAscender

        void setAscender(double value)
      • getTypoAscender

        double getTypoAscender()

        Gets typographic ascender value of the Font in font units

        Returns:
        Typographic ascender value of the Font in font units
      • setTypoAscender

        void setTypoAscender(double value)
      • getDescender

        double getDescender()

        Gets descender value of the Font in font units.

        Returns:
        Descender value of the Font in font units.
      • setDescender

        void setDescender(double value)
      • getTypoDescender

        double getTypoDescender()

        Gets typographic descender value of the Font in Font units.

        Returns:
        Typographic descender value of the Font in Font units.
      • setTypoDescender

        void setTypoDescender(double value)
      • getLineGap

        double getLineGap()

        Gets LineGap value of the Font in Font units.

        Returns:
        LineGap value of the Font in Font units.
      • getTypoLineGap

        double getTypoLineGap()

        Gets typographic LineGap value of the Font in Font units.

        Returns:
        Typographic LineGap value of the Font in Font units.
      • getKerningValue

        double getKerningValue(GlyphId prevGlyphId,
                               GlyphId nextGlyphId)

        Returns kerning value for the glyph pair.

        Parameters:
        prevGlyphId - First glyph in pair.
        nextGlyphId - Font size.
        Returns:
        Kerning value.
      • getGlyphWidth

        double getGlyphWidth(GlyphId glyphId)

        Returns glyph width.

        Parameters:
        glyphId - Glyph identifier.
        Returns:
        Glyph width.
      • getGlyphBBox

        FontBBox getGlyphBBox(GlyphId glyphId)

        Returns glyph BBox.

        Parameters:
        glyphId - glyph identifier
        Returns:
        glyph BBox
      • getAscender

        double getAscender(double fontSize)

        Returns ascender for specific Font size.

        Parameters:
        fontSize - Font size.
        Returns:
        Ascender value.
      • getDescender

        double getDescender(double fontSize)

        Returns descender for specific Font size.

        Parameters:
        fontSize - Font size.
        Returns:
        Descender value.
      • getTypoDescender

        double getTypoDescender(double fontSize)

        Returns typographic descender for specific Font size.

        Parameters:
        fontSize - Font size.
        Returns:
        Typographic descender value.
      • getTypoAscender

        double getTypoAscender(double fontSize)

        Returns typographic ascender for specific Font size.

        Parameters:
        fontSize - Font size.
        Returns:
        Typographic ascender value.
      • getTypoLineGap

        double getTypoLineGap(double fontSize)

        Returns line gap for specific Font size.

        Parameters:
        fontSize - Font size.
        Returns:
        Line gap value.
      • measureString

        double measureString(String unicode,
                             double fontSize)

        Measures string and returns string width.

        Parameters:
        unicode - Unicode string.
        fontSize - Font size.
        Returns:
        String width.