FontEncoding
Vue de l’ensemble
‘FontEncoding’ est une classe dans Aspose.PDF FOSS pour Java.
Mape des codes de caractère (0-255) à les noms glyph et points de code Unicode.
Cette classe fournit 7 méthodes pour travailler avec les objets de codage en Java. Les méthodologies disponibles comprennent: ‘FontEncoding’, ‘fromDictionary’, getGlyphName', ‘getInstance’, 'getNamen', ’getUnicode, ‘withDifferences’. Tous les membres publics sont accessibles à n’importe quelle application Java après avoir installé l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘MAC_EXPERT’, ‘‘MAK_ROMAN , 'STANDARD ‘SYMBOL,, 'WIN_ANSI et 1 plus.
Propriétés
| 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. |
méthodes
| 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: PdfDictionary) → 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: PdfArray) → FontEncoding | Creates a new encoding by cloning this one and applying a /Differences array. |
getName() → String | Returns the encoding name. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise