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
Modifier and TypeMethodDescriptionprotected booleanallowCFF()(package private) OpenTypeFontnewFont(TTFDataStream raf) (package private) OpenTypeFontparse(TTFDataStream raf) parse(RandomAccessRead randomAccessRead) Parse a RandomAccessRead and return a TrueType font.protected TTFTableMethods inherited from class org.apache.fontbox.ttf.TTFParser
parseEmbedded, parseTableHeaders, 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
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.
-
parse
- Overrides:
parsein classTTFParser- Throws:
IOException
-
newFont
-
readTable
-
allowCFF
protected boolean allowCFF()
-