public class CIDFontType2Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isEmbedded |
Constructor and Description |
---|
CIDFontType2Parser() |
CIDFontType2Parser(boolean isEmbedded) |
Modifier and Type | Method and Description |
---|---|
protected void |
parseTables(TrueTypeFont font,
TTFDataStream raf)
Parse all tables and check if all needed tables are present.
|
TrueTypeFont |
parseTTF(java.io.File ttfFile)
Parse a file and get a true type font.
|
TrueTypeFont |
parseTTF(java.io.InputStream ttfData)
Parse a file and get a true type font.
|
TrueTypeFont |
parseTTF(java.lang.String ttfFile)
Parse a file and get a true type font.
|
TrueTypeFont |
parseTTF(TTFDataStream raf)
Parse a file and get a true type font.
|
public CIDFontType2Parser()
public CIDFontType2Parser(boolean isEmbedded)
public TrueTypeFont parseTTF(java.lang.String ttfFile) throws java.io.IOException
ttfFile
- The TTF file.java.io.IOException
- If there is an error parsing the true type font.public TrueTypeFont parseTTF(java.io.File ttfFile) throws java.io.IOException
ttfFile
- The TTF file.java.io.IOException
- If there is an error parsing the true type font.public TrueTypeFont parseTTF(java.io.InputStream ttfData) throws java.io.IOException
ttfData
- The TTF data to parse.java.io.IOException
- If there is an error parsing the true type font.public TrueTypeFont parseTTF(TTFDataStream raf) throws java.io.IOException
raf
- The TTF file.java.io.IOException
- If there is an error parsing the true type font.protected void parseTables(TrueTypeFont font, TTFDataStream raf) throws java.io.IOException
font
- the TrueTypeFont instance holding the parsed data.raf
- the data stream of the to be parsed ttf fontjava.io.IOException
- If there is an error parsing the true type font.