com.aspose.page

Interface ITrFont



  • public interface ITrFont

    This interface give access to main parameters of font.

    • Method Detail

      • getFontType

        int getFontType()

        Gets a type of font in Adobe classification.

        Returns:
        Font type.
      • getFontName

        String getFontName()

        Gets a name of font.

        Returns:
        Font name.
      • getEncodingTable

        String getEncodingTable()

        Gets a name of the encoding.

        Returns:
        A name of the encoding.
      • getEncoding

        String[] getEncoding()

        Gets encoding array.

        Returns:
        An encoding array.
      • getCharStrings

        HashMap<String,IGlyph> getCharStrings()

        Gets a mapping between character name and glyph.

        Returns:
        A mapping between character name and glyph.
      • getFont

        com.aspose.foundation.drawing.DrFont getFont()

        Gets DrFont corresponding to this font.

        Returns:
        DrFont.
      • getNativeFont

        Font getNativeFont()

        Gets java.awt.Font corresponding to this font.

        Returns:
        Native font.
      • getTransform

        AffineTransform getTransform()

        Gets font transformation.

        Returns:
        A transformation.
      • getSize

        float getSize()

        Gets font size.

        Returns:
        A size of the font.
      • getStyle

        int getStyle()

        Gets font style.

        Returns:
        A style of the font.
      • deriveFont

        ITrFont deriveFont(float size)

        Creates equivalent of this font with new size.

        Parameters:
        size - Size of new font.
        Returns:
        A new font.
      • deriveFont

        ITrFont deriveFont(int style)

        Creates equivalent of this font with new style.

        Parameters:
        style - Style of new font.
        Returns:
        A new font.
      • deriveFont

        ITrFont deriveFont(float size,
                           int style)

        Creates equivalent of this font with new size and style.

        Parameters:
        size - Size of new font.
        style - Style of new font.
        Returns:
        A new font.
      • deriveFont

        ITrFont deriveFont(AffineTransform transform)

        Creates equivalent of this font with new transform.

        Parameters:
        transform - Transformation of new font.
        Returns:
        A new font.
      • getCharWidth

        float getCharWidth(char charValue)

        Gets a width of character.

        Parameters:
        charValue - Character.
        Returns:
        A width of character.
      • getOutline

        Shape getOutline(char charValue,
                         float x,
                         float y)

        Returns an outline of glyph in specified location.

        Parameters:
        charValue - Character.
        x - X coordinate of the character location.
        y - Y coordinate of the character location.
        Returns:
        An outline of glyph.
      • clone

        ITrFont clone()

        Clones the font.

        Returns:
        A new font.