Type3Font
Overview
Type3Font is a class in Aspose.PDF FOSS for Java.
Inherits from: PdfFont.
Type 3 font (/Subtype /Type3) — ISO 32000-1:2008, §9.6.5.
This class provides 14 methods for working with Type3Font objects in Java programs.
Available methods include: Type3Font, decode, fromDictionary, getBaseFont, getCharProc, getEncoding, getFontDescriptor, getFontDictionary, getFontMatrix, getFontMetrics, getFontResources, getToUnicode, and 2 additional methods.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: baseFont, composite, encoding, fontDescriptor, fontDictionary, fontMatrix, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
fontMatrix | Matrix | Read | Returns the /FontMatrix mapping glyph space to text space (§9.6.5). |
fontResources | PdfDictionary | Read | Returns the font’s own /Resources dictionary for its glyph streams, |
| or null — in which case the spec (§9.6.5, Note 2) says to fall back | |||
| to the resources of the content stream that painted the text. | |||
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 |
|---|---|
Type3Font(fontDict: PdfDictionary, parser: PDFParser) | Creates a Type3Font from a font dictionary. |
getWidth(charCode: int) → double | |
getFontMatrix() → Matrix | Returns the /FontMatrix mapping glyph space to text space (§9.6.5). |
getCharProc(charCode: int) → PdfStream | Returns the glyph-description content stream for a character code: |
| /Encoding(/Differences) maps the code to a glyph name, which keys | |
| into the /CharProcs dictionary (§9.6.5). | |
getFontResources() → PdfDictionary | Returns the font’s own /Resources dictionary for its glyph streams, |
| or null — in which case the spec (§9.6.5, Note 2) says to fall back | |
| to the resources of the content stream that painted the text. | |
decode(charCodes: byte[]) → String | Decodes raw character code bytes to a Unicode string. |
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. |