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()
void
void
write_loca
(de.intarsys.tools.randomaccess.IRandomAccess random, int[] locations, boolean shortFormat) void
write_name
(de.intarsys.tools.randomaccess.IRandomAccess random, TTNameRecord[] names) void
writeByte
(de.intarsys.tools.randomaccess.IRandomAccess random, int value) void
writeBytes
(de.intarsys.tools.randomaccess.IRandomAccess random, byte[] value, int off, int len) protected void
writeFontHeader
(de.intarsys.tools.randomaccess.IRandomAccess random) Fixed sfnt version 0x00010000 for version 1.0.void
writeInt
(de.intarsys.tools.randomaccess.IRandomAccess random, int value) void
writeShort
(de.intarsys.tools.randomaccess.IRandomAccess random, int value) protected void
writeTableDirectory
(de.intarsys.tools.randomaccess.IRandomAccess random) protected void
writeTableDirectoryTable
(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table) protected void
writeTables
(de.intarsys.tools.randomaccess.IRandomAccess random) protected void
writeTablesTable
(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
-