public class CffFont extends Font
Represents Compact Font Format (CFF).
| Modifier and Type | Method and Description |
|---|---|
Font |
convert(FontType fontType)
Converts the Font into another format.
|
GlyphId[] |
getAllGlyphIds()
Returns array of all glyph ids, available in the Font.
|
CffFontsSettings |
getCommonFontsSettings()
Gets settings common to CFF fonts.
|
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.
|
int |
getFontStyle()
Gets Font style.
|
FontType |
getFontType()
Gets Font type.
|
Glyph |
getGlyphById(GlyphId id)
Returns glyph by glyph id.
|
Glyph |
getGlyphById(long id)
Returns glyph by glyph id.
|
Glyph |
getGlyphById(String glyphName)
Returns glyph by glyph name.
|
GlyphIdType |
getGlyphIdType()
Gets glyph id type specification.
|
ICffIndexDataProvider |
getIndexDataProvider(CffIndexProviderType indexType)
Gets provider for the specified CFF INDEX structure type.
|
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.
|
TopDictDataProvider |
getTopDictDataProvider() |
boolean |
isCidKeyedFont()
Gets value indicating that the Font is cid-keyed.
|
void |
setCommonFontsSettings(CffFontsSettings value)
Specifies settings common to CFF fonts.
|
void |
setFontFamily(String value)
The Font family setter is not implemented yet.
|
void |
setFontName(String value)
The Font face name setter is not implemented yet.
|
void |
setStyle(String value)
The Style setter is not implemented yet.
|
getFontSaver, getGlyphAccessor, getGlyphsForText, open, open, open, open, save, save, saveToFormatpublic FontType getFontType()
Gets Font type. Returns FontType.CFF value.
getFontType in interface IFontgetFontType in class Fontpublic String getFontFamily()
Gets Font family.
getFontFamily in interface IFontgetFontFamily in class Fontpublic void setFontFamily(String value)
The Font family setter is not implemented yet.
setFontFamily in interface IFontsetFontFamily in class Fontvalue - New Font family.public String getFontName()
Gets Font face name.
getFontName in interface IFontgetFontName in class Fontpublic void setFontName(String value)
The Font face name setter is not implemented yet.
setFontName in interface IFontsetFontName in class Fontvalue - New Font face name.public MultiLanguageString getFontNames()
Gets Font names.
getFontNames in interface IFontgetFontNames in class Fontpublic MultiLanguageString getPostscriptNames()
Gets postscript Font names.
getPostscriptNames in interface IFontgetPostscriptNames in class Fontpublic String getStyle()
Gets Font style. This is a raw string value provided by Font file.
public void setStyle(String value)
The Style setter is not implemented yet.
public int getFontStyle()
Gets Font style. This is a value computed and represented in generalized type.
getFontStyle in interface IFontgetFontStyle in class Fontpublic boolean isCidKeyedFont()
Gets value indicating that the Font is cid-keyed.
public int getNumGlyphs()
Gets number of glyphs in the Font.
getNumGlyphs in interface IFontgetNumGlyphs in class Fontpublic IFontMetrics getMetrics()
Gets Font metrics.
getMetrics in interface IFontgetMetrics in class Fontpublic IFontEncoding getEncoding()
Gets Font encoding.
getEncoding in interface IFontgetEncoding in class Fontpublic GlyphIdType getGlyphIdType()
Gets glyph id type specification.
getGlyphIdType in interface IGlyphAccessorgetGlyphIdType in class Fontpublic FontDefinition getFontDefinition()
Gets font definition.
getFontDefinition in interface IFontgetFontDefinition in class Fontpublic CffFontsSettings getCommonFontsSettings()
Gets settings common to CFF fonts. These settings are used in different scenarios and can be changed for each individual font.
public void setCommonFontsSettings(CffFontsSettings value)
Specifies settings common to CFF fonts.
value - Font definition.public Glyph getGlyphById(GlyphId id)
Returns glyph by glyph id.
Glyph id is a unique number for a glyph, which is font type dependent.
CFF Font glyph id can be instance of (GlyphStringId) class or (GlyphInt32Id) class.
getGlyphById in interface IGlyphAccessorgetGlyphById in class Fontid - Glyph id.public Glyph getGlyphById(String glyphName)
Returns glyph by glyph name.
glyphName - Glyph name.public Glyph getGlyphById(long id)
Returns glyph by glyph id.
id - Glyph id.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.
CFF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.
getAllGlyphIds in interface IGlyphAccessorgetAllGlyphIds in class Fontpublic Font convert(FontType fontType)
Converts the Font into another format. Note: TTF Font type is now supported only.
public ICffIndexDataProvider getIndexDataProvider(CffIndexProviderType indexType)
Gets provider for the specified CFF INDEX structure type.
indexType - Type of INDEX structure.ICffIndexDataProvider) interface.public TopDictDataProvider getTopDictDataProvider()
Copyright © 2025 Aspose. All Rights Reserved.