public class Type1Font extends Font
Represents Type1 Font.
| 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 id)
Returns glyph by glyph id.
|
GlyphIdType |
getGlyphIdType()
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.
|
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.Type1 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. This is a raw string value provided by Font file.
public int getFontStyle()
Gets Font style. This is a value computed and represented in generalized type.
getFontStyle in interface IFontgetFontStyle in class Fontpublic 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 Glyph getGlyphById(String id)
Returns glyph by glyph id.
id - Glyph id.public Glyph getGlyphById(long id)
Returns glyph by glyph id.
id - Glyph 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.
Type1 Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.
getGlyphById in interface IGlyphAccessorgetGlyphById in class Fontid - 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.
Type1 Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class.
getAllGlyphIds in interface IGlyphAccessorgetAllGlyphIds in class Fontpublic GlyphIdType getGlyphIdType()
Glyph id type specification.
getGlyphIdType in interface IGlyphAccessorgetGlyphIdType in class Fontpublic FontDefinition getFontDefinition()
Gets Font definition.
getFontDefinition in interface IFontgetFontDefinition in class FontCopyright © 2025 Aspose. All Rights Reserved.