Package org.apache.fontbox.ttf
Class OTFParser
java.lang.Object
org.apache.fontbox.ttf.TTFParser
org.apache.fontbox.ttf.OTFParser
OpenType font file parser.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.fontbox.ttf.TTFParser
parseEmbedded, parseTableHeaders
-
Constructor Details
-
OTFParser
public OTFParser()Constructor. -
OTFParser
public OTFParser(boolean isEmbedded) Constructor.- Parameters:
isEmbedded- true if the font is embedded in PDF
-
-
Method Details
-
parse
public OpenTypeFont parse(org.apache.pdfbox.io.RandomAccessRead randomAccessRead) throws IOException Description copied from class:TTFParserParse a RandomAccessRead and return a TrueType font.- Overrides:
parsein classTTFParser- Parameters:
randomAccessRead- The RandomAccessRead to be read from. It will be closed before returning.- Returns:
- A TrueType font.
- Throws:
IOException- If there is an error parsing the TrueType font.
-
readTable
-
allowCFF
protected boolean allowCFF()
-