FontEncoding
Overview
FontEncoding is a class in Aspose.Pdf FOSS for Java.
Maps character codes (0-255) to glyph names and Unicode codepoints.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Returns the encoding name. |
WIN_ANSI | FontEncoding | Read | WinAnsiEncoding singleton (ISO 32000, Table D.1). |
MAC_ROMAN | FontEncoding | Read | MacRomanEncoding singleton (ISO 32000, Table D.1). |
STANDARD | FontEncoding | Read | StandardEncoding singleton (ISO 32000, Table D.1). |
MAC_EXPERT | FontEncoding | Read | MacExpertEncoding singleton. |
SYMBOL | FontEncoding | Read | Symbol encoding for Symbol font. |
ZAPF_DINGBATS | FontEncoding | Read | ZapfDingbats encoding. |
Methods
| Signature | Description |
|---|---|
FontEncoding(name: String) | Creates a new FontEncoding with the given name. |
getInstance(name: String) → FontEncoding | Returns a built-in encoding by name. |
fromDictionary(encDict: COSDictionary) → FontEncoding | Creates a FontEncoding from a PDF /Encoding dictionary. |
getGlyphName(charCode: int) → String | Returns the glyph name for the given character code. |
getUnicode(charCode: int) → int | Returns the Unicode codepoint for the given character code. |
withDifferences(differences: COSArray) → FontEncoding | Creates a new encoding by cloning this one and applying a /Differences array. |
getName() → String | Returns the encoding name. |