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