com.sun.pdfview.font.ttf
public class TrueTypeFont extends Object
| Constructor Summary | |
|---|---|
| TrueTypeFont(int type) Creates a new instance of TrueTypeParser | |
| Method Summary | |
|---|---|
| void | addTable(String tagString, ByteBuffer data)
Add a table to the font
|
| void | addTable(String tagString, TrueTypeTable table)
Add a table to the font
|
| short | getEntrySelector()
Get the entry selector |
| short | getNumTables()
Get the number of tables |
| short | getRangeShift()
Get the range shift |
| short | getSearchRange()
Get the search range |
| TrueTypeTable | getTable(String tagString)
Get a table by name. |
| int | getType()
Get the type of this font |
| static void | main(String[] args) |
| static TrueTypeFont | parseFont(byte[] orig)
Parses a TrueType font from a byte array |
| static TrueTypeFont | parseFont(ByteBuffer inBuf)
Parses a TrueType font from a byte buffer |
| void | removeTable(String tagString)
Remove a table by name
|
| String | toString()
Write the font to a pretty string |
| byte[] | writeFont()
Write a font given the type and an array of Table Directory Entries |
Parameters: tagString the name of this table, as a 4 character string (i.e. cmap or head) data the data for this table, as a byte buffer
Parameters: tagString the name of this table, as a 4 character string (i.e. cmap or head) table the table
Parameters: tagString the name of this table, as a 4 character string (i.e. cmap or head)
Parameters: args the command line arguments
Parameters: tagString the name of this table, as a 4 character string (i.e. cmap or head)