CIDFont
Overview
CIDFont is a class in Aspose.Pdf FOSS for Java.
Inherits from: PdfFont.
CID font (ISO 32000-1:2008, §9.7.4).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
defaultWidth | double | Read | Returns the default width (/DW). |
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 | COSDictionary | Read | Returns the underlying font dictionary. |
Methods
| Signature | Description |
|---|---|
CIDFont(fontDict: COSDictionary, parser: PDFParser) | Creates a CIDFont from a font dictionary. |
getWidth(cid: int) → double | |
getDefaultWidth() → double | Returns the default width (/DW). |
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() → COSDictionary | Returns the underlying font dictionary. |
fromDictionary(fontDict: COSDictionary, parser: PDFParser) → PdfFont | Creates the appropriate PdfFont subclass from a font dictionary. |