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 ABAP 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 C_RC_BAD_FONT Constant Public Type reference (TYPE) I 34 Font is corrupted 20100629
2 C_RC_CHECKSUM_ERROR Constant Public Type reference (TYPE) I 37 Checksum error in TTFont 20100629
3 C_RC_FONTUTIL_NOTIMPL Constant Public Type reference (TYPE) I 2 Kernel does not support area FONTUTIL 20100629
4 C_RC_FONTUTIL_OP_NOTIMPL Constant Public Type reference (TYPE) I 3 kernel does not support the operation for FONTUTIL 20130207
5 C_RC_NOMEMORY Constant Public Type reference (TYPE) I 32 Cannot append line to int.table 20100629
6 C_RC_NO_EMBEDDING Constant Public Type reference (TYPE) I 35 Font does not allow embedding 20100629
7 C_RC_NO_MEMORY Constant Public Type reference (TYPE) I 45 Out of memory, malloc failed 20100629
8 C_RC_NO_SUBSETTING Constant Public Type reference (TYPE) I 36 Font does not allow subsetting 20100629
9 C_RC_NO_UCSYMB_ENC Constant Public Type reference (TYPE) I 39 Font has neither Unicode nor Symbol encoding 20100629
10 C_RC_OBJREF_IS_INITIAL Constant Public Type reference (TYPE) I 3 Object ref passed as input is initial 20100629
11 C_RC_PS_OUTLINES Constant Public Type reference (TYPE) I 38 OpenType Font has PostScript outlines, cannot subset 20100629
12 C_RC_SUBSETFAILED Constant Public Type reference (TYPE) I 33 unspecific error when subsetting 20100629
13 C_RC_SUBS_EMPTYCHARSET Constant Public Type reference (TYPE) I 43 Character set for subsetting is empty 20100629
14 C_RC_SUBS_FONTNOTSUP Constant Public Type reference (TYPE) I 44 Source font has no Unicode glyph mapping (required) 20100629
15 C_RC_SUBS_INVALIDSOURCE Constant Public Type reference (TYPE) I 42 Source font is invalid 20100629
16 C_RC_TABLE_EMPTY Constant Public Type reference (TYPE) I 30 table is empty 20100629
17 C_RC_TABLE_MISSING Constant Public Type reference (TYPE) I 40 Required TrueType table is missing 20100629
18 C_RC_TABLE_WRONGWIDTH Constant Public Type reference (TYPE) I 31 Table has wrong width 20100629
19 C_RC_TTC_FONTNUM_ERR Constant Public Type reference (TYPE) I 41 Font Index for TrueType collection is invalid 20100629
20 ERRMSG Instance attribute Public Type reference (TYPE) STRING English error msg 20100629
21 SUBS_FONTFILE Instance attribute Public Object reference (TYPE REF TO) CL_RSPO_BINBUF Buffer to store binary data via XSTRING/ITAB 20100629
22 SUBS_FONTNAME_FULL Instance attribute Public Type reference (TYPE) STRING Name of last subsetted font 20100629
23 SUBS_GLYPHMAP Instance attribute Public Object reference (TYPE REF TO) CL_RSPO_FNTUTL_GLYPHMAP Glyph list/old-new glyph mapping for font subsetting 20130207
24 SUBS_UC2GLYPHMAP 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 CONSTRUCTOR Instance method Public Constructor Clear everything 20100629
2 INT_SET_ERRMSG Instance method Private Method Set english error string from RC 20100629
3 SUBSET_CHARGLYPHLIST Instance method Public Method Subset a font based on a list of chars and glyphs 20130207
4 SUBSET_CHARLIST Instance method Public Method Subset a font based on a list of wanted characters 20100629
5 SUBSET_SCRIPTLIST 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 Importing 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 Importing 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 Importing IM_FONTFILE Call by reference Object reference (TYPE REF TO) CL_RSPO_BINBUF Buffer to store binary data via XSTRING/ITAB 20130207
3 Importing 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 Importing IM_TTC_FONTINDEX Call by reference Type reference (TYPE) I 1 Index of font for TrueType collections (1,2...) 20130207
5 Importing IM_UCCHARLIST Call by reference Object reference (TYPE REF TO) CL_RSPO_FNTUTL_UCLIST List of Unicode Codepoints (for font subsetting) 20130207
6 Importing IM_WANTED_FONTNAME Call by reference Type reference (TYPE) STRING '$-subset' Desired fontname ($ stands for old name) 20130207
7 Returning 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 Importing IM_CHARLIST Call by reference Object reference (TYPE REF TO) CL_RSPO_CHARLIST Character list e.g. for Font subsetting 20100629
2 Importing IM_CREATE_POSTV2 Call by reference Type reference (TYPE) ABAP_BOOL SPACE Boolean Variable (X=True, -=False, Space=Unknown) 20100629
3 Importing IM_FONTFILE Call by reference Object reference (TYPE REF TO) CL_RSPO_BINBUF Buffer to store binary data via XSTRING/ITAB 20100629
4 Importing IM_TTC_FONTINDEX Call by reference Type reference (TYPE) I 1 Index of font for TrueType collections (1,2...) 20100629
5 Importing IM_UC2GLYPHMAP Call by reference Type reference (TYPE) ABAP_BOOL SPACE Return Unicode-to-glyph mapping of subset font 20100629
6 Importing IM_WANTED_FONTNAME Call by reference Type reference (TYPE) STRING '$-subset' Desired fontname ($ stands for old name) 20100629
7 Returning 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 Importing IM_CREATE_POSTV2 Call by reference Type reference (TYPE) ABAP_BOOL SPACE Boolean Variable (X=True, -=False, Space=Unknown) 20100629
2 Importing IM_FONTFILE Call by reference Object reference (TYPE REF TO) CL_RSPO_BINBUF Buffer to store binary data via XSTRING/ITAB 20100629
3 Importing 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 Importing IM_TTC_FONTINDEX Call by reference Type reference (TYPE) I 1 Index of font for TrueType collections (1,2...) 20100629
5 Importing IM_UC2GLYPHMAP Call by reference Type reference (TYPE) ABAP_BOOL SPACE Return Unicode-to-glyph mapping of subset font 20100629
6 Importing IM_WANTED_FONTNAME Call by reference Type reference (TYPE) STRING '$-subset' Desired fontname ($ stands for old name) 20100629
7 Returning 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