com.lowagie.text.pdf
Class CFFFontSubset
java.lang.Object
com.lowagie.text.pdf.CFFFont
com.lowagie.text.pdf.CFFFontSubset
- public class CFFFontSubset
- extends CFFFont
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@math.tau.ac.il)
- Author:
- Oren Manor (manorore@post.tau.ac.il) and Ygal Blum (blumygal@post.tau.ac.il)
|
Method Summary |
byte[] |
Process(String fontName)
The Process function extracts one font out of the CFF file and returns a
subset version of the original. |
CFFFontSubset
public CFFFontSubset(RandomAccessFileOrArray rf,
HashMap GlyphsUsed)
- C'tor for CFFFontSubset
- Parameters:
rf - - The font fileGlyphsUsed - - a HashMap that contains the glyph used in the subset
Process
public byte[] Process(String fontName)
throws IOException
- 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
- Throws:
IOException
Copyright © 2011 EGIZ - E-Government Innovation Center. All Rights Reserved.