Package de.intarsys.cwt.font.truetype
Class TTFontSerializer
java.lang.Object
de.intarsys.cwt.font.truetype.TTFontSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont()voidvoidwrite_loca(de.intarsys.tools.randomaccess.IRandomAccess random, int[] locations, boolean shortFormat) voidwrite_name(de.intarsys.tools.randomaccess.IRandomAccess random, TTNameRecord[] names) voidwriteByte(de.intarsys.tools.randomaccess.IRandomAccess random, int value) voidwriteBytes(de.intarsys.tools.randomaccess.IRandomAccess random, byte[] value, int off, int len) protected voidwriteFontHeader(de.intarsys.tools.randomaccess.IRandomAccess random) Fixed sfnt version 0x00010000 for version 1.0.voidwriteInt(de.intarsys.tools.randomaccess.IRandomAccess random, int value) voidwriteShort(de.intarsys.tools.randomaccess.IRandomAccess random, int value) protected voidwriteTableDirectory(de.intarsys.tools.randomaccess.IRandomAccess random) protected voidwriteTableDirectoryTable(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table) protected voidwriteTables(de.intarsys.tools.randomaccess.IRandomAccess random) protected voidwriteTablesTable(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table)
-
Constructor Details
-
TTFontSerializer
public TTFontSerializer()
-
-
Method Details
-
getFont
-
write
public void write(de.intarsys.tools.randomaccess.IRandomAccess random, TTFont pFont) throws IOException - Throws:
IOException
-
write_loca
public void write_loca(de.intarsys.tools.randomaccess.IRandomAccess random, int[] locations, boolean shortFormat) throws IOException - Throws:
IOException
-
write_name
public void write_name(de.intarsys.tools.randomaccess.IRandomAccess random, TTNameRecord[] names) throws IOException - Throws:
IOException
-
writeByte
public void writeByte(de.intarsys.tools.randomaccess.IRandomAccess random, int value) throws IOException - Throws:
IOException
-
writeBytes
public void writeBytes(de.intarsys.tools.randomaccess.IRandomAccess random, byte[] value, int off, int len) throws IOException - Throws:
IOException
-
writeFontHeader
protected void writeFontHeader(de.intarsys.tools.randomaccess.IRandomAccess random) throws IOException Fixed sfnt version 0x00010000 for version 1.0. USHORT numTables Number of tables. USHORT searchRange (Maximum power of 2 <= numTables) x 16. USHORT entrySelector Log2(maximum power of 2 <= numTables). USHORT rangeShift NumTables x 16-searchRange.
- Throws:
IOException
-
writeInt
public void writeInt(de.intarsys.tools.randomaccess.IRandomAccess random, int value) throws IOException - Throws:
IOException
-
writeShort
public void writeShort(de.intarsys.tools.randomaccess.IRandomAccess random, int value) throws IOException - Throws:
IOException
-
writeTableDirectory
protected void writeTableDirectory(de.intarsys.tools.randomaccess.IRandomAccess random) throws IOException - Throws:
IOException
-
writeTableDirectoryTable
protected void writeTableDirectoryTable(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table) throws IOException - Throws:
IOException
-
writeTables
- Throws:
IOException
-
writeTablesTable
protected void writeTablesTable(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table) throws IOException - Throws:
IOException
-