Type0Font
Vue de l’ensemble
‘Type0Font’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: `PdfFon’.
Type 0 (composite) de la lettre ISO 32000-1:2008, §9.7 ;
Cette classe fournit 14 méthodes pour travailler avec des objets Type0Font dans les programmes Java. Les méthodologies disponibles comprennent: Type0Soft, decode , fromDictionary,, ‘getBaseFon’, ‘gettDescendantFonte 'coding getEncoderName``getFotDescriptor getFontaDictoryet'GettFonsMétriques et 2 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriété : baseFoonteux, ‘compositedescendantsfont,`code, n’encode d’enregistrement, 4 plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
composite | boolean | Read | Gets the composite. |
descendantFont | CIDFont | Read | Returns the descendant CIDFont. |
fontDescriptor | FontDescriptor | Read | Returns the {@link FontDescriptor} carried by the descendant CIDFont |
| (the Type0 root itself doesn’t have one — PDF spec §9.7.3 places the | |||
| descriptor on the descendant). | |||
encodingName | String | Read | Returns the encoding name (e.g., “Identity-H”). |
identityEncoding | boolean | Read | Returns true when the encoding CMap is Identity-H or Identity-V, |
| i.e. | |||
baseFont | String | Read | Returns the base font name (/BaseFont). |
encoding | FontEncoding | Read | Returns the font encoding. |
toUnicode | ToUnicodeCMap | Read | Returns the ToUnicode CMap. |
fontMetrics | FontMetrics | Read | Returns the font metrics. |
fontDictionary | PdfDictionary | Read | Returns the underlying font dictionary. |
méthodes
| Signature | Description |
|---|---|
Type0Font(fontDict: PdfDictionary, parser: PDFParser) | Creates a Type0Font from a font dictionary. |
decode(charCodes: byte[]) → String | Decodes raw bytes using two-level CID mapping. |
getWidth(charCode: int) → double | |
isComposite() → boolean | Returns true if composite is set. |
getDescendantFont() → CIDFont | Returns the descendant CIDFont. |
getFontDescriptor() → FontDescriptor | Returns the {@link FontDescriptor} carried by the descendant CIDFont |
| (the Type0 root itself doesn’t have one — PDF spec §9.7.3 places the | |
| descriptor on the descendant). | |
getEncodingName() → String | Returns the encoding name (e.g., “Identity-H”). |
isIdentityEncoding() → boolean | Returns true when the encoding CMap is Identity-H or Identity-V, |
| i.e. | |
getBaseFont() → String | Returns the base font name (/BaseFont). |
getEncoding() → FontEncoding | Returns the font encoding. |
getToUnicode() → ToUnicodeCMap | Returns the ToUnicode CMap. |
getFontMetrics() → FontMetrics | Returns the font metrics. |
getFontDictionary() → PdfDictionary | Returns the underlying font dictionary. |
fromDictionary(fontDict: PdfDictionary, parser: PDFParser) → PdfFont | Creates the appropriate PdfFont subclass from a font dictionary. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise