Package de.intarsys.cwt.font.truetype
Class TTFontSerializer
- java.lang.Object
-
- de.intarsys.cwt.font.truetype.TTFontSerializer
-
public class TTFontSerializer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TTFontSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TTFontgetFont()voidwrite(de.intarsys.tools.randomaccess.IRandomAccess random, TTFont pFont)voidwrite_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)
-
-
-
Method Detail
-
getFont
public TTFont getFont()
-
write
public void write(de.intarsys.tools.randomaccess.IRandomAccess random, TTFont pFont) throws java.io.IOException- Throws:
java.io.IOException
-
write_loca
public void write_loca(de.intarsys.tools.randomaccess.IRandomAccess random, int[] locations, boolean shortFormat) throws java.io.IOException- Throws:
java.io.IOException
-
write_name
public void write_name(de.intarsys.tools.randomaccess.IRandomAccess random, TTNameRecord[] names) throws java.io.IOException- Throws:
java.io.IOException
-
writeByte
public void writeByte(de.intarsys.tools.randomaccess.IRandomAccess random, int value) throws java.io.IOException- Throws:
java.io.IOException
-
writeBytes
public void writeBytes(de.intarsys.tools.randomaccess.IRandomAccess random, byte[] value, int off, int len) throws java.io.IOException- Throws:
java.io.IOException
-
writeFontHeader
protected void writeFontHeader(de.intarsys.tools.randomaccess.IRandomAccess random) throws java.io.IOExceptionFixed 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:
java.io.IOException
-
writeInt
public void writeInt(de.intarsys.tools.randomaccess.IRandomAccess random, int value) throws java.io.IOException- Throws:
java.io.IOException
-
writeShort
public void writeShort(de.intarsys.tools.randomaccess.IRandomAccess random, int value) throws java.io.IOException- Throws:
java.io.IOException
-
writeTableDirectory
protected void writeTableDirectory(de.intarsys.tools.randomaccess.IRandomAccess random) throws java.io.IOException- Throws:
java.io.IOException
-
writeTableDirectoryTable
protected void writeTableDirectoryTable(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table) throws java.io.IOException- Throws:
java.io.IOException
-
writeTables
protected void writeTables(de.intarsys.tools.randomaccess.IRandomAccess random) throws java.io.IOException- Throws:
java.io.IOException
-
writeTablesTable
protected void writeTablesTable(de.intarsys.tools.randomaccess.IRandomAccess random, TTTable table) throws java.io.IOException- Throws:
java.io.IOException
-
-