CffFont
Inheritance: java.lang.Object, com.aspose.font.Font
public class CffFont extends Font
Represents Compact Font Format (CFF).
Methods
Method | Description |
---|---|
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. |
isCidKeyedFont() | Gets value indicating that the Font is cid-keyed. |
getNumGlyphs() | Gets number of glyphs in the Font. |
getMetrics() | Gets Font metrics. |
getEncoding() | Gets Font encoding. |
getGlyphIdType() | Gets glyph id type specification. |
getFontDefinition() | Gets font definition. |
getGlyphById(GlyphId id) | Returns glyph by glyph id. |
getGlyphById(String glyphName) | Returns glyph by glyph name. |
getGlyphById(long id) | Returns glyph by glyph id. |
getAllGlyphIds() | Returns array of all glyph ids, available in the Font. |
convert(FontType fontType) | Converts the Font into another format. |
getFontType()
public FontType getFontType()
Gets Font type. Returns FontType.CFF 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:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New 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:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New 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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New 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.
isCidKeyedFont()
public boolean isCidKeyedFont()
Gets value indicating that the Font is cid-keyed.
Returns: boolean - Value indicating that the Font is cid-keyed.
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.
getGlyphIdType()
public GlyphIdType getGlyphIdType()
Gets glyph id type specification.
Returns: GlyphIdType - Glyph id type specification.
getFontDefinition()
public FontDefinition getFontDefinition()
Gets font definition.
Returns: FontDefinition - Font definition.
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. CFF Font glyph id can be instance of ( GlyphStringId ) class or ( GlyphInt32Id ) class.
Parameters:
Parameter | Type | Description |
---|---|---|
id | GlyphId | Glyph id. |
Returns: Glyph - Glyph.
getGlyphById(String glyphName)
public Glyph getGlyphById(String glyphName)
Returns glyph by glyph name.
Parameters:
Parameter | Type | Description |
---|---|---|
glyphName | java.lang.String | Glyph name. |
Returns: Glyph - Glyph.
getGlyphById(long id)
public Glyph getGlyphById(long id)
Returns glyph by glyph id.
Parameters:
Parameter | Type | Description |
---|---|---|
id | long | Glyph id. |
Returns: Glyph - 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. CFF Font glyph id can be instance of ( GlyphStringId ) class or ( GlyphUInt32Id ) class.
Returns: com.aspose.font.GlyphId[]
convert(FontType fontType)
public Font convert(FontType fontType)
Converts the Font into another format. Note: TTF Font type is now supported only.
Parameters:
Parameter | Type | Description |
---|---|---|
fontType | FontType | Font format type to convert into. |
Returns: Font - Font converted into new format.