Type1Font
Overview
Type1Font is a class in Aspose.PDF FOSS for Java.
Inherits from: PdfFont.
Simple Type 1 font (/Subtype /Type1) — ISO 32000-1:2008, §9.6.
This class provides 11 methods for working with Type1Font objects in Java programs.
Available methods include: Type1Font, decode, fromDictionary, getBaseFont, getEncoding, getFontDescriptor, getFontDictionary, getFontMetrics, getToUnicode, getWidth, isComposite.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: baseFont, composite, encoding, fontDescriptor, fontDictionary, fontMetrics, and 1 more.
Properties
| 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. |
Methods
| 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. |