|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.TtfTableCMAP.Format
org.extex.font.format.xtf.tables.TtfTableCMAP.Format6
public class TtfTableCMAP.Format6
Format 6 is used to map 16-bit, 2-byte, characters to glyph indexes. It is sometimes called the trimmed table mapping. It should be used when character codes for a font fall into a single contiguous range. This results in what is termed adense mapping. Two-byte fonts that are not densely mapped (due to their multiple contiguous ranges) should use Format 4.
| Type | Name | Description |
| USHORT | format | Format number is set to 6. |
| USHORT | length | Length in bytes. |
| USHORT | version | Version number (starts at 0) |
| USHORT | firstCode | First character code of subrange. |
| USHORT | entryCount | Number of character codes in subrange. |
| USHORT | glyphIdArray [entryCount] | Array of glyph index values for character codes in the range. |
| 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 |
|---|
public int mapCharCode(int charCode)
mapCharCode in class TtfTableCMAP.FormatcharCode - the charcode
TtfTableCMAP.Format.mapCharCode(int)
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writer - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(
org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||