public interface IFont
Declares common functionality for all font formats. Implemented by Font classes.
| Modifier and Type | Method and Description |
|---|---|
Font |
convert(FontType fontType)
Converts the Font into another format.
|
IFontEncoding |
getEncoding()
Gets Font encoding.
|
FontDefinition |
getFontDefinition()
Gets Font definition.
|
String |
getFontFamily()
Gets Font family.
|
String |
getFontName()
Gets Font face name.
|
MultiLanguageString |
getFontNames()
Gets Font names.
|
IFontSaver |
getFontSaver()
Gets Font save functionality.
|
int |
getFontStyle()
Gets Font style.
|
FontType |
getFontType()
Gets Font type.
|
IGlyphAccessor |
getGlyphAccessor()
Gets Font glyph accessor.
|
IFontMetrics |
getMetrics()
Gets Font metrics.
|
int |
getNumGlyphs()
Gets number of glyphs in the Font.
|
MultiLanguageString |
getPostscriptNames()
Gets postscript Font names.
|
String |
getStyle()
Gets Font style.
|
void |
setFontFamily(String value)
Sets Font family.
|
void |
setFontName(String value)
Sets Font face name.
|
void |
setStyle(String value)
Sets Font style.
|
FontType getFontType()
Gets Font type.
Type1, TrueType etc.
String getStyle()
Gets Font style. This is a raw string value provided by Font file.
void setStyle(String value)
Sets Font style. This is a raw string value provided by Font file.
value - New Font style.int getFontStyle()
Gets Font style. This is a value computed and represented in generalized type.
String getFontFamily()
Gets Font family.
void setFontFamily(String value)
Sets Font family.
value - New Font family.String getFontName()
Gets Font face name.
void setFontName(String value)
Sets Font face name.
value - New Font face name.MultiLanguageString getFontNames()
Gets Font names.
MultiLanguageString getPostscriptNames()
Gets postscript Font names.
int getNumGlyphs()
Gets number of glyphs in the Font.
IFontMetrics getMetrics()
Gets Font metrics.
IFontEncoding getEncoding()
Gets Font encoding.
IGlyphAccessor getGlyphAccessor()
Gets Font glyph accessor. Retrieves glyphs and glyph identifiers.
FontDefinition getFontDefinition()
Gets Font definition.
IFontSaver getFontSaver()
Gets Font save functionality.
Copyright © 2025 Aspose. All Rights Reserved.