Type1Font
Vue de l’ensemble
‘Type1Font’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: `PdfFon’.
Type 1 simple (/Subtype /Type1) — ISO 32000-1:2008, §9.6.
Cette classe fournit 11 méthodes pour travailler avec des objets Type1Font dans les programmes Java. Les méthodologies disponibles comprennent: Type1Foot, decode , fromDictionary ; ‘getBaseFon’, getEncoding; ‘getFonteDescriptor : 'GetDictary' ; ‘getFontaMetrics ؛ ‘goToUnicode‘ ; ’getWidth et 'isComposite. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : baseFoons, ‘composites en codant, fontDescriveen, FontDictoryent, Metric 1 et plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
baseFont | String | Read | Returns the base font name (/BaseFont). |
encoding | FontEncoding | Read | Returns the font encoding. |
toUnicode | ToUnicodeCMap | Read | Returns the ToUnicode CMap. |
fontDescriptor | FontDescriptor | Read | Returns the font descriptor. |
composite | boolean | Read | Returns {@code true} when this is a Type0 composite font whose |
| content-stream encoding uses multi-byte character codes (e.g. | |||
fontMetrics | FontMetrics | Read | Returns the font metrics. |
fontDictionary | PdfDictionary | Read | Returns the underlying font dictionary. |
méthodes
| Signature | Description |
|---|---|
Type1Font(fontDict: PdfDictionary, parser: PDFParser) | Creates a Type1Font from a font dictionary. |
decode(charCodes: byte[]) → String | |
getWidth(charCode: int) → double | |
getBaseFont() → String | Returns the base font name (/BaseFont). |
getEncoding() → FontEncoding | Returns the font encoding. |
getToUnicode() → ToUnicodeCMap | Returns the ToUnicode CMap. |
getFontDescriptor() → FontDescriptor | Returns the font descriptor. |
isComposite() → boolean | Returns {@code true} when this is a Type0 composite font whose |
| content-stream encoding uses multi-byte character codes (e.g. | |
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