org.extex.font.format.xtf.tables
Class TtfTableCMAP.Format12

java.lang.Object
  extended by org.extex.font.format.xtf.tables.TtfTableCMAP.Format
      extended by org.extex.font.format.xtf.tables.TtfTableCMAP.Format12
All Implemented Interfaces:
XMLWriterConvertible
Enclosing class:
TtfTableCMAP

public class TtfTableCMAP.Format12
extends TtfTableCMAP.Format

Format 12.0 is a bit like format 4, in that it defines segments for sparse representation in 4-byte character space.

Type Name Description
Fixed32 format Subtable format; set to 12.0
UInt32 length Byte length of this subtable (including the header)
UInt32 language 0 if don't care
UInt32 nGroups Number of groupings which follow


Method Summary
 int mapCharCode(int charCode)
          map char code.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.TtfTableCMAP.Format
addAttributes, getFormat, getLength, getVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

mapCharCode

public int mapCharCode(int charCode)
map char code.

Specified by:
mapCharCode in class TtfTableCMAP.Format
Parameters:
charCode - the charcode
Returns:
Returns the map char code
See Also:
TtfTableCMAP.Format.mapCharCode(int)

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Write the data to a XMLStreamWriter.

Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML( org.extex.util.xml.XMLStreamWriter)