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.
|
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.
|
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.
|
boolean |
isCidKeyedFont()
Gets value indicating that the Font is cid-keyed.
|
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, saveToFormat
public FontType getFontType()
Gets Font type. Returns FontType.CFF value.
getFontType
in interface IFont
getFontType
in class Font
public String getFontFamily()
Gets Font family.
getFontFamily
in interface IFont
getFontFamily
in class Font
public void setFontFamily(String value)
The Font family setter is not implemented yet.
setFontFamily
in interface IFont
setFontFamily
in class Font
value
- New Font family.public String getFontName()
Gets Font face name.
getFontName
in interface IFont
getFontName
in class Font
public void setFontName(String value)
The Font face name setter is not implemented yet.
setFontName
in interface IFont
setFontName
in class Font
value
- New Font face name.public MultiLanguageString getFontNames()
Gets Font names.
getFontNames
in interface IFont
getFontNames
in class Font
public MultiLanguageString getPostscriptNames()
Gets postscript Font names.
getPostscriptNames
in interface IFont
getPostscriptNames
in class Font
public 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 IFont
getFontStyle
in class Font
public boolean isCidKeyedFont()
Gets value indicating that the Font is cid-keyed.
public int getNumGlyphs()
Gets number of glyphs in the Font.
getNumGlyphs
in interface IFont
getNumGlyphs
in class Font
public IFontMetrics getMetrics()
Gets Font metrics.
getMetrics
in interface IFont
getMetrics
in class Font
public IFontEncoding getEncoding()
Gets Font encoding.
getEncoding
in interface IFont
getEncoding
in class Font
public GlyphIdType getGlyphIdType()
Gets glyph id type specification.
getGlyphIdType
in interface IGlyphAccessor
getGlyphIdType
in class Font
public FontDefinition getFontDefinition()
Gets font definition.
getFontDefinition
in interface IFont
getFontDefinition
in class Font
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 IGlyphAccessor
getGlyphById
in class Font
id
- 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 IGlyphAccessor
getAllGlyphIds
in class Font