Package org.apache.fontbox.ttf
Class CIDFontType2Parser
java.lang.Object
org.apache.fontbox.ttf.CIDFontType2Parser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
parseTables
(TrueTypeFont font, TTFDataStream raf) Parse all tables and check if all needed tables are present.Parse a file and get a TrueType font.parseTTF
(InputStream inputStream) Parse an input stream and return a TrueType font.Parse a file and get a TrueType font.parseTTF
(TTFDataStream raf) Parse a TrueType data stream and get a TrueType font.
-
Field Details
-
isEmbedded
protected boolean isEmbedded -
parseOnDemandOnly
protected boolean parseOnDemandOnly
-
-
Constructor Details
-
CIDFontType2Parser
public CIDFontType2Parser() -
CIDFontType2Parser
public CIDFontType2Parser(boolean isEmbedded)
-
-
Method Details
-
parseTTF
Parse a file and get a TrueType font.- Parameters:
ttfFile
- The TrueType file name.- Returns:
- A TrueType font.
- Throws:
IOException
- If there is an error parsing the TrueType font.
-
parseTTF
Parse a file and get a TrueType font.- Parameters:
ttfFile
- The TrueType file.- Returns:
- A TrueType font.
- Throws:
IOException
- If there is an error parsing the TrueType font.
-
parseTTF
Parse an input stream and return a TrueType font.- Parameters:
inputStream
- The TTF data stream to parse from. It will be closed before returning.- Returns:
- A TrueType font.
- Throws:
IOException
- If there is an error parsing the TrueType font.
-
parseTTF
Parse a TrueType data stream and get a TrueType font.- Parameters:
raf
- The TrueType file.- Returns:
- A TrueType font.
- Throws:
IOException
- If there is an error parsing the TrueType font.
-
parseTables
Parse all tables and check if all needed tables are present.- Parameters:
font
- the TrueTypeFont instance holding the parsed data.raf
- the data stream of the to be parsed ttf font- Throws:
IOException
- If there is an error parsing the TrueType font.
-