This Class subsets a CFF Type Font. More...
|
|
CFFFontSubset (byte[] cff, ICollection< int > GlyphsUsed) |
|
C'tor for CFFFontSubset More...
|
|
virtual byte[] |
Process (String fontName) |
|
The Process function extracts one font out of the CFF file and returns a subset version of the original. More...
|
|
virtual byte[] |
Process () |
|
The Process function extracts one font out of the CFF file and returns a subset version of the original with the first name. More...
|
|
virtual String |
GetString (char sid) |
|
virtual byte[] |
GetCID (String fontName) |
|
get a single CID font. More...
|
|
virtual bool |
IsCID (String fontName) |
|
virtual bool |
Exists (String fontName) |
|
virtual String[] |
GetNames () |
|
|
CFFFont (byte[] cff) |
|
This Class subsets a CFF Type Font.
This Class subsets a CFF Type Font. The subset is preformed for CID fonts and NON CID fonts. The Charstring is subsetted for both types. For CID fonts only the FDArray which are used are embedded. The Lsubroutines of the FDArrays used are subsetted as well. The Subroutine subset supports both Type1 and Type2 formatting although only tested on Type2 Format. For Non CID the Lsubroutines are subsetted. On both types the Gsubroutines is subsetted. A font which was not of CID type is transformed into CID as a part of the subset process. The CID synthetic creation was written by Sivan Toledo (sivan.nosp@m.@mat.nosp@m.h.tau.nosp@m..ac..nosp@m.il)
Oren Manor (manor.nosp@m.ore@.nosp@m.post..nosp@m.tau..nosp@m.ac.il) and Ygal Blum (blumy.nosp@m.gal@.nosp@m.post..nosp@m.tau..nosp@m.ac.il)
◆ CFFFontSubset()
iText.IO.Font.CFFFontSubset.CFFFontSubset |
( |
byte[] |
cff, |
|
|
ICollection< int > |
GlyphsUsed |
|
) |
|
|
|
inline |
C'tor for CFFFontSubset
-
Parameters
-
cff |
- The font file |
GlyphsUsed |
- a Map that contains the glyph used in the subset |
◆ Process() [1/2]
virtual byte [] iText.IO.Font.CFFFontSubset.Process |
( |
|
) |
|
|
inlinevirtual |
The Process function extracts one font out of the CFF file and returns a subset version of the original with the first name.
-
Returns
-
The new font stream
◆ Process() [2/2]
virtual byte [] iText.IO.Font.CFFFontSubset.Process |
( |
String |
fontName |
) |
|
|
inlinevirtual |
The Process function extracts one font out of the CFF file and returns a subset version of the original.
-
Parameters
-
fontName |
- The name of the font to be taken out of the CFF |
-
Returns
-
The new font stream