public final class OTFParser extends TTFParser
| Constructor and Description |
|---|
OTFParser()
Constructor.
|
OTFParser(boolean isEmbedded)
Constructor.
|
OTFParser(boolean isEmbedded,
boolean parseOnDemand)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowCFF() |
OpenTypeFont |
parse(java.io.File file)
Parse a file and return a TrueType font.
|
OpenTypeFont |
parse(java.io.InputStream data)
Parse an input stream and return a TrueType font.
|
OpenTypeFont |
parse(java.lang.String file)
Parse a file and return a TrueType font.
|
protected TTFTable |
readTable(TrueTypeFont font,
java.lang.String tag) |
parseEmbeddedpublic OTFParser()
public OTFParser(boolean isEmbedded)
isEmbedded - true if the font is embedded in PDFpublic OTFParser(boolean isEmbedded,
boolean parseOnDemand)
isEmbedded - true if the font is embedded in PDFparseOnDemand - true if the tables of the font should be parsed on demandpublic OpenTypeFont parse(java.lang.String file) throws java.io.IOException
TTFParserpublic OpenTypeFont parse(java.io.File file) throws java.io.IOException
TTFParserpublic OpenTypeFont parse(java.io.InputStream data) throws java.io.IOException
TTFParserprotected TTFTable readTable(TrueTypeFont font, java.lang.String tag)