org.fontbox.ttf
Class TTFParser
java.lang.Object
org.fontbox.ttf.TTFParser
public class TTFParser
extends java.lang.Object
A true type font file parser.
- Ben Litchfield (ben@benlitchfield.com)
main
public static void main(String[] args)
throws IOException
A simple command line program to test parsing of a TTF file.
usage: java org.pdfbox.ttf.TTFParser <ttf-file>
args
- The command line arguments.
parseTTF
public TrueTypeFont parseTTF(File ttfFile)
throws IOException
Parse a file and get a true type font.
parseTTF
public TrueTypeFont parseTTF(InputStream ttfData)
throws IOException
Parse a file and get a true type font.
ttfData
- The TTF data to parse.
parseTTF
public TrueTypeFont parseTTF(String ttfFile)
throws IOException
Parse a file and get a true type font.