public class CIDFontType2Parser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isEmbedded |
protected boolean |
parseOnDemandOnly |
| 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(File ttfFile)
Parse a file and get a TrueType font.
|
TrueTypeFont |
parseTTF(InputStream inputStream)
Parse an input stream and return a TrueType font.
|
TrueTypeFont |
parseTTF(String ttfFile)
Parse a file and get a TrueType font.
|
TrueTypeFont |
parseTTF(TTFDataStream raf)
Parse a TrueType data stream and get a TrueType font.
|
protected boolean isEmbedded
protected boolean parseOnDemandOnly
public CIDFontType2Parser()
public CIDFontType2Parser(boolean isEmbedded)
public TrueTypeFont parseTTF(String ttfFile) throws IOException
ttfFile - The TrueType file name.IOException - If there is an error parsing the TrueType font.public TrueTypeFont parseTTF(File ttfFile) throws IOException
ttfFile - The TrueType file.IOException - If there is an error parsing the TrueType font.public TrueTypeFont parseTTF(InputStream inputStream) throws IOException
inputStream - The TTF data stream to parse from. It will be closed before returning.IOException - If there is an error parsing the TrueType font.public TrueTypeFont parseTTF(TTFDataStream raf) throws IOException
raf - The TrueType file.IOException - If there is an error parsing the TrueType font.protected void parseTables(TrueTypeFont font, TTFDataStream raf) throws IOException
font - the TrueTypeFont instance holding the parsed data.raf - the data stream of the to be parsed ttf fontIOException - If there is an error parsing the TrueType font.Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.