Package org.apache.fontbox.ttf
Class OTFParser
- java.lang.Object
-
- org.apache.fontbox.ttf.TTFParser
-
- org.apache.fontbox.ttf.OTFParser
-
public final class OTFParser extends TTFParser
OpenType font file parser.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowCFF()OpenTypeFontparse(java.io.File file)Parse a file and return a TrueType font.OpenTypeFontparse(java.io.InputStream data)Parse an input stream and return a TrueType font.OpenTypeFontparse(java.lang.String file)Parse a file and return a TrueType font.protected TTFTablereadTable(TrueTypeFont font, java.lang.String tag)-
Methods inherited from class org.apache.fontbox.ttf.TTFParser
parseEmbedded
-
-
-
-
Constructor Detail
-
OTFParser
public OTFParser()
Constructor.
-
OTFParser
public OTFParser(boolean isEmbedded)
Constructor.- Parameters:
isEmbedded- true if the font is embedded in PDF
-
OTFParser
public OTFParser(boolean isEmbedded, boolean parseOnDemand)Constructor.- Parameters:
isEmbedded- true if the font is embedded in PDFparseOnDemand- true if the tables of the font should be parsed on demand
-
-
Method Detail
-
parse
public OpenTypeFont parse(java.lang.String file) throws java.io.IOException
Description copied from class:TTFParserParse a file and return a TrueType font.
-
parse
public OpenTypeFont parse(java.io.File file) throws java.io.IOException
Description copied from class:TTFParserParse a file and return a TrueType font.
-
parse
public OpenTypeFont parse(java.io.InputStream data) throws java.io.IOException
Description copied from class:TTFParserParse an input stream and return a TrueType font.
-
readTable
protected TTFTable readTable(TrueTypeFont font, java.lang.String tag)
-
-