|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fontbox.ttf.TTFParser
public class TTFParser
A true type font file parser.
| Field Summary | |
|---|---|
protected boolean |
isEmbedded
|
| Constructor Summary | |
|---|---|
TTFParser()
|
|
TTFParser(boolean isEmbedded)
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
A simple command line program to test parsing of a TTF file. |
protected void |
parseTables(TrueTypeFont font,
TTFDataStream raf)
Parse all tables and check if all needed tables are present. |
TrueTypeFont |
parseTTF(File ttfFile)
Parse a file and get a true type font. |
TrueTypeFont |
parseTTF(InputStream ttfData)
Parse a file and get a true type font. |
TrueTypeFont |
parseTTF(String ttfFile)
Parse a file and get a true type font. |
TrueTypeFont |
parseTTF(TTFDataStream raf)
Parse a file and get a true type font. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean isEmbedded
| Constructor Detail |
|---|
public TTFParser()
public TTFParser(boolean isEmbedded)
| Method Detail |
|---|
public static void main(String[] args)
throws IOException
args - The command line arguments.
IOException - If there is an error while parsing the font file.
protected void parseTables(TrueTypeFont font,
TTFDataStream raf)
throws IOException
font - the TrueTypeFont instance holding the parsed data.raf - the data stream of the to be parsed ttf font
IOException - If there is an error parsing the true type font.
public TrueTypeFont parseTTF(String ttfFile)
throws IOException
ttfFile - The TTF file.
IOException - If there is an error parsing the true type font.
public TrueTypeFont parseTTF(File ttfFile)
throws IOException
ttfFile - The TTF file.
IOException - If there is an error parsing the true type font.
public TrueTypeFont parseTTF(InputStream ttfData)
throws IOException
ttfData - The TTF data to parse.
IOException - If there is an error parsing the true type font.
public TrueTypeFont parseTTF(TTFDataStream raf)
throws IOException
raf - The TTF file.
IOException - If there is an error parsing the true type font.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||