Type1Font

Inheritance: java.lang.Object, com.aspose.font.Font

public class Type1Font extends Font

Represents Type1 Font.

Methods

MethodDescription
getFontType()Gets Font type.
getFontFamily()Gets Font family.
setFontFamily(String value)The Font family setter is not implemented yet.
getFontName()Gets Font face name.
setFontName(String value)The Font face name setter is not implemented yet.
getFontNames()Gets Font names.
getPostscriptNames()Gets postscript Font names.
getStyle()Gets Font style.
setStyle(String value)The Style setter is not implemented yet.
getFontStyle()Gets Font style.
getNumGlyphs()Gets number of glyphs in the Font.
getMetrics()Gets Font metrics.
getEncoding()Gets Font encoding.
getGlyphById(String id)Returns glyph by glyph id.
getGlyphById(long id)Returns glyph by glyph id.
getGlyphById(GlyphId id)Returns glyph by glyph id.
getAllGlyphIds()Returns array of all glyph ids, available in the Font.
getGlyphIdType()Glyph id type specification.
getFontDefinition()Gets Font definition.
convert(FontType fontType)Converts the Font into another format.

getFontType()

public FontType getFontType()

Gets Font type. Returns FontType.Type1 value.

Returns: FontType - Font type.

getFontFamily()

public String getFontFamily()

Gets Font family.

Returns: java.lang.String - Font family.

setFontFamily(String value)

public void setFontFamily(String value)

The Font family setter is not implemented yet.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew Font family.

getFontName()

public String getFontName()

Gets Font face name.

Returns: java.lang.String - Font face name.

setFontName(String value)

public void setFontName(String value)

The Font face name setter is not implemented yet.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew Font face name.

getFontNames()

public MultiLanguageString getFontNames()

Gets Font names.

Returns: MultiLanguageString - Font names.

getPostscriptNames()

public MultiLanguageString getPostscriptNames()

Gets postscript Font names.

Returns: MultiLanguageString - Postscript Font names

getStyle()

public String getStyle()

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

Returns: java.lang.String - Font style.

setStyle(String value)

public void setStyle(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew Font style.

getFontStyle()

public EnumSet<FontStyle> getFontStyle()

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

Returns: java.util.EnumSet<com.aspose.font.FontStyle> - Font style. Usually, a combination of FontStyle class constant flag values or 0.

getNumGlyphs()

public int getNumGlyphs()

Gets number of glyphs in the Font.

Returns: int - Number of glyphs in the Font.

getMetrics()

public IFontMetrics getMetrics()

Gets Font metrics.

Returns: IFontMetrics - Font metrics.

getEncoding()

public IFontEncoding getEncoding()

Gets Font encoding.

Returns: IFontEncoding - Font encoding.

getGlyphById(String id)

public Glyph getGlyphById(String id)

Returns glyph by glyph id.

Parameters:

ParameterTypeDescription
idjava.lang.StringGlyph id.

Returns: Glyph - Glyph.

getGlyphById(long id)

public Glyph getGlyphById(long id)

Returns glyph by glyph id.

Parameters:

ParameterTypeDescription
idlongGlyph id.

Returns: Glyph - Glyph.

getGlyphById(GlyphId id)

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.

Parameters:

ParameterTypeDescription
idGlyphId

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.

Returns: com.aspose.font.GlyphId[]

getGlyphIdType()

public GlyphIdType getGlyphIdType()

Glyph id type specification.

Returns: GlyphIdType

getFontDefinition()

public FontDefinition getFontDefinition()

Gets Font definition.

Returns: FontDefinition - Font definition.

convert(FontType fontType)

public Font convert(FontType fontType)

Converts the Font into another format.

Note: TTF Font type is now supported only.

Parameters:

ParameterTypeDescription
fontTypeFontTypeFont format type to convert into.

Returns: Font - Font converted into new format.