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 TTFont
getFont()
void
write(de.intarsys.tools.randomaccess.IRandomAccess random, TTFont pFont)
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)
-
-
-
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.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:
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
-
-