| |
|
| java.lang.Object com.lowagie.text.pdf.TrueTypeFontSubSet
TrueTypeFontSubSet | class TrueTypeFontSubSet (Code) | | Subsets a True Type font by removing the unneeded glyphs from
the font.
author: Paulo Soares (psoares@consiste.pt) |
ARG_1_AND_2_ARE_WORDS | final static int ARG_1_AND_2_ARE_WORDS(Code) | | |
HEAD_LOCA_FORMAT_OFFSET | final static int HEAD_LOCA_FORMAT_OFFSET(Code) | | |
MORE_COMPONENTS | final static int MORE_COMPONENTS(Code) | | |
TABLE_CHECKSUM | final static int TABLE_CHECKSUM(Code) | | |
TABLE_LENGTH | final static int TABLE_LENGTH(Code) | | |
TABLE_OFFSET | final static int TABLE_OFFSET(Code) | | |
WE_HAVE_AN_X_AND_Y_SCALE | final static int WE_HAVE_AN_X_AND_Y_SCALE(Code) | | |
WE_HAVE_A_SCALE | final static int WE_HAVE_A_SCALE(Code) | | |
WE_HAVE_A_TWO_BY_TWO | final static int WE_HAVE_A_TWO_BY_TWO(Code) | | |
directoryOffset | protected int directoryOffset(Code) | | |
entrySelectors | final static int entrySelectors(Code) | | |
fontPtr | protected int fontPtr(Code) | | |
glyfTableRealSize | protected int glyfTableRealSize(Code) | | |
includeCmap | protected boolean includeCmap(Code) | | |
includeExtras | protected boolean includeExtras(Code) | | |
locaShortTable | protected boolean locaShortTable(Code) | | |
locaTable | protected int locaTable(Code) | | |
locaTableRealSize | protected int locaTableRealSize(Code) | | |
newGlyfTable | protected byte newGlyfTable(Code) | | |
newLocaTable | protected int newLocaTable(Code) | | |
newLocaTableOut | protected byte newLocaTableOut(Code) | | |
outFont | protected byte outFont(Code) | | |
tableDirectory | protected HashMap tableDirectory(Code) | | Contains the location of the several tables. The key is the name of
the table and the value is an int[3] where position 0
is the checksum, position 1 is the offset from the start of the file
and position 2 is the length of the table.
|
tableGlyphOffset | protected int tableGlyphOffset(Code) | | |
TrueTypeFontSubSet | TrueTypeFontSubSet(String fileName, RandomAccessFileOrArray rf, HashMap glyphsUsed, int directoryOffset, boolean includeCmap, boolean includeExtras)(Code) | | Creates a new TrueTypeFontSubSet
Parameters: directoryOffset - The offset from the start of the file to the table directory Parameters: fileName - the file name of the font Parameters: glyphsUsed - the glyphs used Parameters: includeCmap - true if the table cmap is to be included in the generated font |
calculateChecksum | protected int calculateChecksum(byte b)(Code) | | |
checkGlyphComposite | protected void checkGlyphComposite(int glyph) throws IOException(Code) | | |
locaTobytes | protected void locaTobytes()(Code) | | |
readStandardString | protected String readStandardString(int length) throws IOException(Code) | | Reads a String from the font file as bytes using the Cp1252
encoding.
Parameters: length - the length of bytes to read the String read throws: IOException - the font file could not be read |
writeFontInt | protected void writeFontInt(int n)(Code) | | |
writeFontShort | protected void writeFontShort(int n)(Code) | | |
writeFontString | protected void writeFontString(String s)(Code) | | |
|
|
|