SAP ABAP Class CL_RSPO_FNTUTL_TTFONT (TrueType font subsetting)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-CCM-PRN (Application Component) Print and Output Management
⤷
SPOO (Package) Spool
⤷
⤷
Properties
| Class | CL_RSPO_FNTUTL_TTFONT | |
| Short Description | TrueType font subsetting | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SPOO | Spool |
| Created | 20100629 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_RSPO_FNTUTL_TTFONT has no interface implemented.
Friends
Class CL_RSPO_FNTUTL_TTFONT has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | I | 34 | Font is corrupted | 20100629 | ||
| 2 | Constant | Public | Type reference (TYPE) | I | 37 | Checksum error in TTFont | 20100629 | ||
| 3 | Constant | Public | Type reference (TYPE) | I | 2 | Kernel does not support area FONTUTIL | 20100629 | ||
| 4 | Constant | Public | Type reference (TYPE) | I | 3 | kernel does not support the operation for FONTUTIL | 20130207 | ||
| 5 | Constant | Public | Type reference (TYPE) | I | 32 | Cannot append line to int.table | 20100629 | ||
| 6 | Constant | Public | Type reference (TYPE) | I | 35 | Font does not allow embedding | 20100629 | ||
| 7 | Constant | Public | Type reference (TYPE) | I | 45 | Out of memory, malloc failed | 20100629 | ||
| 8 | Constant | Public | Type reference (TYPE) | I | 36 | Font does not allow subsetting | 20100629 | ||
| 9 | Constant | Public | Type reference (TYPE) | I | 39 | Font has neither Unicode nor Symbol encoding | 20100629 | ||
| 10 | Constant | Public | Type reference (TYPE) | I | 3 | Object ref passed as input is initial | 20100629 | ||
| 11 | Constant | Public | Type reference (TYPE) | I | 38 | OpenType Font has PostScript outlines, cannot subset | 20100629 | ||
| 12 | Constant | Public | Type reference (TYPE) | I | 33 | unspecific error when subsetting | 20100629 | ||
| 13 | Constant | Public | Type reference (TYPE) | I | 43 | Character set for subsetting is empty | 20100629 | ||
| 14 | Constant | Public | Type reference (TYPE) | I | 44 | Source font has no Unicode glyph mapping (required) | 20100629 | ||
| 15 | Constant | Public | Type reference (TYPE) | I | 42 | Source font is invalid | 20100629 | ||
| 16 | Constant | Public | Type reference (TYPE) | I | 30 | table is empty | 20100629 | ||
| 17 | Constant | Public | Type reference (TYPE) | I | 40 | Required TrueType table is missing | 20100629 | ||
| 18 | Constant | Public | Type reference (TYPE) | I | 31 | Table has wrong width | 20100629 | ||
| 19 | Constant | Public | Type reference (TYPE) | I | 41 | Font Index for TrueType collection is invalid | 20100629 | ||
| 20 | Instance attribute | Public | Type reference (TYPE) | STRING | English error msg | 20100629 | |||
| 21 | Instance attribute | Public | Object reference (TYPE REF TO) | CL_RSPO_BINBUF | Buffer to store binary data via XSTRING/ITAB | 20100629 | |||
| 22 | Instance attribute | Public | Type reference (TYPE) | STRING | Name of last subsetted font | 20100629 | |||
| 23 | Instance attribute | Public | Object reference (TYPE REF TO) | CL_RSPO_FNTUTL_GLYPHMAP | Glyph list/old-new glyph mapping for font subsetting | 20130207 | |||
| 24 | Instance attribute | Public | Object reference (TYPE REF TO) | CL_RSPO_FNTUTL_UCGLYPHLIST | Unicode to glyph mapping | 20100629 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Constructor | Clear everything | 20100629 | |
| 2 | Instance method | Private | Method | Set english error string from RC | 20100629 | |
| 3 | Instance method | Public | Method | Subset a font based on a list of chars and glyphs | 20130207 | |
| 4 | Instance method | Public | Method | Subset a font based on a list of wanted characters | 20100629 | |
| 5 | Instance method | Public | Method | Subset a font based on a list of Unicode Script IDs | 20100629 |
Events
Class CL_RSPO_FNTUTL_TTFONT has no event.
Types
Class CL_RSPO_FNTUTL_TTFONT has no local type.
Method Signatures
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_RSPO_FNTUTL_TTFONT has no parameter.
Method CONSTRUCTOR on class CL_RSPO_FNTUTL_TTFONT has no exception.
Method INT_SET_ERRMSG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_RC | Call by reference | Type reference (TYPE) | I | rc | 20100629 |
Method INT_SET_ERRMSG on class CL_RSPO_FNTUTL_TTFONT has no exception.
Method SUBSET_CHARGLYPHLIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_CREATE_POSTV2 | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Create a post table version 2 with ps glyph names? | 20130207 | ||
| 2 | IM_FONTFILE | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_BINBUF | Buffer to store binary data via XSTRING/ITAB | 20130207 | |||
| 3 | IM_GLYPHLIST | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_FNTUTL_GLYPHMAP | Glyph list/old-new glyph mapping for font subsetting | 20130207 | |||
| 4 | IM_TTC_FONTINDEX | Call by reference | Type reference (TYPE) | I | 1 | Index of font for TrueType collections (1,2...) | 20130207 | ||
| 5 | IM_UCCHARLIST | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_FNTUTL_UCLIST | List of Unicode Codepoints (for font subsetting) | 20130207 | |||
| 6 | IM_WANTED_FONTNAME | Call by reference | Type reference (TYPE) | STRING | '$-subset' | Desired fontname ($ stands for old name) | 20130207 | ||
| 7 | RT_RETURNCODE | Value transfer | Type reference (TYPE) | I | 0 if ok, otherwise > 0 | 20130207 |
Method SUBSET_CHARGLYPHLIST on class CL_RSPO_FNTUTL_TTFONT has no exception.
Method SUBSET_CHARLIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_CHARLIST | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_CHARLIST | Character list e.g. for Font subsetting | 20100629 | |||
| 2 | IM_CREATE_POSTV2 | Call by reference | Type reference (TYPE) | ABAP_BOOL | SPACE | Boolean Variable (X=True, -=False, Space=Unknown) | 20100629 | ||
| 3 | IM_FONTFILE | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_BINBUF | Buffer to store binary data via XSTRING/ITAB | 20100629 | |||
| 4 | IM_TTC_FONTINDEX | Call by reference | Type reference (TYPE) | I | 1 | Index of font for TrueType collections (1,2...) | 20100629 | ||
| 5 | IM_UC2GLYPHMAP | Call by reference | Type reference (TYPE) | ABAP_BOOL | SPACE | Return Unicode-to-glyph mapping of subset font | 20100629 | ||
| 6 | IM_WANTED_FONTNAME | Call by reference | Type reference (TYPE) | STRING | '$-subset' | Desired fontname ($ stands for old name) | 20100629 | ||
| 7 | RT_RETURNCODE | Value transfer | Type reference (TYPE) | I | 0 if ok, otherwise > 0 | 20100629 |
Method SUBSET_CHARLIST on class CL_RSPO_FNTUTL_TTFONT has no exception.
Method SUBSET_SCRIPTLIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_CREATE_POSTV2 | Call by reference | Type reference (TYPE) | ABAP_BOOL | SPACE | Boolean Variable (X=True, -=False, Space=Unknown) | 20100629 | ||
| 2 | IM_FONTFILE | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_BINBUF | Buffer to store binary data via XSTRING/ITAB | 20100629 | |||
| 3 | IM_SCRIPTLIST | Call by reference | Object reference (TYPE REF TO) | CL_RSPO_FNTUTL_SCRIPTLIST | List of UC scripts (e.g. BASIC LATIN, LATIN1 suppl.) | 20100629 | |||
| 4 | IM_TTC_FONTINDEX | Call by reference | Type reference (TYPE) | I | 1 | Index of font for TrueType collections (1,2...) | 20100629 | ||
| 5 | IM_UC2GLYPHMAP | Call by reference | Type reference (TYPE) | ABAP_BOOL | SPACE | Return Unicode-to-glyph mapping of subset font | 20100629 | ||
| 6 | IM_WANTED_FONTNAME | Call by reference | Type reference (TYPE) | STRING | '$-subset' | Desired fontname ($ stands for old name) | 20100629 | ||
| 7 | RT_RETURNCODE | Value transfer | Type reference (TYPE) | I | 0 if ok, otherwise > 0 | 20100629 |
Method SUBSET_SCRIPTLIST on class CL_RSPO_FNTUTL_TTFONT has no exception.
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 703 |