com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class Type1Font

    • Method Detail

      • getFontType

        public FontType getFontType()

        Gets Font type. Returns FontType.Type1 value.

        Specified by:
        getFontType in interface IFont
        Specified by:
        getFontType in class Font
        Returns:
        Font type.
      • setFontFamily

        public void setFontFamily(String value)

        The Font family setter is not implemented yet.

        Specified by:
        setFontFamily in interface IFont
        Specified by:
        setFontFamily in class Font
        Parameters:
        value - New Font family.
      • setFontName

        public void setFontName(String value)

        The Font face name setter is not implemented yet.

        Specified by:
        setFontName in interface IFont
        Specified by:
        setFontName in class Font
        Parameters:
        value - New Font face name.
      • getStyle

        public String getStyle()

        Gets Font style. This is a raw string value provided by Font file.

        Specified by:
        getStyle in interface IFont
        Specified by:
        getStyle in class Font
        Returns:
        Font style.
      • setStyle

        public void setStyle(String value)

        The Style setter is not implemented yet. This is a raw string value provided by Font file.

        Specified by:
        setStyle in interface IFont
        Specified by:
        setStyle in class Font
        Parameters:
        value - New Font style.
      • getFontStyle

        public int getFontStyle()

        Gets Font style. This is a value computed and represented in generalized type.

        Specified by:
        getFontStyle in interface IFont
        Specified by:
        getFontStyle in class Font
        Returns:
        Font style. Usually, a combination of FontStyle class constant flag values or 0.
      • getNumGlyphs

        public int getNumGlyphs()

        Gets number of glyphs in the Font.

        Specified by:
        getNumGlyphs in interface IFont
        Specified by:
        getNumGlyphs in class Font
        Returns:
        Number of glyphs in the Font.
      • getGlyphById

        public Glyph getGlyphById(String id)

        Returns glyph by glyph id.

        Parameters:
        id - Glyph id.
        Returns:
        Glyph.
      • getGlyphById

        public Glyph getGlyphById(long id)

        Returns glyph by glyph id.

        Parameters:
        id - Glyph id.
        Returns:
        Glyph.
      • getGlyphById

        public Glyph getGlyphById(GlyphId id)

        Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. Type1 Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.

        Specified by:
        getGlyphById in interface IGlyphAccessor
        Specified by:
        getGlyphById in class Font
        Parameters:
        id - Glyph id.
        Returns:
        Glyph.
      • getAllGlyphIds

        public GlyphId[] getAllGlyphIds()

        Returns array of all glyph ids, available in the Font. Glyph id is a unique number for a glyph, which is font type dependent. Type1 Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.

        Specified by:
        getAllGlyphIds in interface IGlyphAccessor
        Specified by:
        getAllGlyphIds in class Font
        Returns:
        Glyph identifiers.
      • convert

        public Font convert(FontType fontType)

        Converts the Font into another format.

         Note: TTF Font type is now supported only.
         
        Specified by:
        convert in interface IFont
        Specified by:
        convert in class Font
        Parameters:
        fontType - Font format type to convert into.
        Returns:
        Font converted into new format.