IFont

public interface IFont

Declares common functionality for all font formats. Implemented by Font classes.

Methods

MethodDescription
convert(FontType fontType)Converts the Font into another format.
getEncoding()Gets Font encoding.
getFontDefinition()Gets Font definition.
getFontFamily()Gets Font family.
getFontName()Gets Font face name.
getFontNames()Gets Font names.
getFontSaver()Gets Font save functionality.
getFontStyle()Gets Font style.
getFontType()Gets Font type.
getGlyphAccessor()Gets Font glyph accessor.
getMetrics()Gets Font metrics.
getNumGlyphs()Gets number of glyphs in the Font.
getPostscriptNames()Gets postscript Font names.
getStyle()Gets Font style.
setFontFamily(String value)Sets Font family.
setFontName(String value)Sets Font face name.
setStyle(String value)Sets Font style.

convert(FontType fontType)

public abstract Font convert(FontType fontType)

Converts the Font into another format.

Parameters:

ParameterTypeDescription
fontTypeFontTypetype to convert to font into

Returns: Font - font converted into format specified

getEncoding()

public abstract IFontEncoding getEncoding()

Gets Font encoding.

Returns: IFontEncoding - Font encoding.

getFontDefinition()

public abstract FontDefinition getFontDefinition()

Gets Font definition.

Returns: FontDefinition - Font definition.

getFontFamily()

public abstract String getFontFamily()

Gets Font family.

Returns: java.lang.String - Font family.

getFontName()

public abstract String getFontName()

Gets Font face name.

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

getFontNames()

public abstract MultiLanguageString getFontNames()

Gets Font names.

Returns: MultiLanguageString - Font names.

getFontSaver()

public abstract IFontSaver getFontSaver()

Gets Font save functionality.

Returns: IFontSaver - Font save functionality.

getFontStyle()

public abstract int getFontStyle()

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

Returns: int - Font style. Usually, a combination of FontStyle class constant flag values or 0.

getFontType()

public abstract FontType getFontType()

Gets Font type.


Type1, TrueType etc.

Returns: FontType - Font type.

getGlyphAccessor()

public abstract IGlyphAccessor getGlyphAccessor()

Gets Font glyph accessor. Retrieves glyphs and glyph identifiers.

Returns: IGlyphAccessor - Font glyph accessor.

getMetrics()

public abstract IFontMetrics getMetrics()

Gets Font metrics.

Returns: IFontMetrics - Font metrics.

getNumGlyphs()

public abstract int getNumGlyphs()

Gets number of glyphs in the Font.

Returns: int - Number of glyphs in the Font..

getPostscriptNames()

public abstract MultiLanguageString getPostscriptNames()

Gets postscript Font names.

Returns: MultiLanguageString - Postscript Font names.

getStyle()

public abstract String getStyle()

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

Returns: java.lang.String - Font style.

setFontFamily(String value)

public abstract void setFontFamily(String value)

Sets Font family.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew Font family.

setFontName(String value)

public abstract void setFontName(String value)

Sets Font face name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew Font face name.

setStyle(String value)

public abstract void setStyle(String value)

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

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew Font style.