|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.gps.CoverageTable
org.extex.font.format.xtf.tables.gps.CoverageTable1
public class CoverageTable1
Coverage Format 1
Coverage Format 1 consists of a format code (CoverageFormat) and a count of covered glyphs (GlyphCount), followed by an array of glyph indices (GlyphArray). The glyph indices must be in numerical order for binary searching of the list. When a glyph is found in the Coverage table, its position in the GlyphArray determines the Coverage Index that is returned-the first glyph has a Coverage Index = 0, and the last glyph has a Coverage Index = GlyphCount -1.
CoverageFormat1 table: Individual glyph indices
| Type | Name | Description |
| uint16 | CoverageFormat | Format identifier-format = 1 |
| uint16 | GlyphCount | Number of glyphs in the GlyphArray |
| GlyphID | GlyphArray[GlyphCount] | Array of GlyphIDs-in numerical order |
| Constructor Summary | |
|---|---|
protected |
CoverageTable1(int format,
RandomAccessR rar)
Creates a new object. |
| Method Summary | |
|---|---|
int[] |
getGlyphArray()
Getter for glyphArray. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class org.extex.font.format.xtf.tables.gps.CoverageTable |
|---|
getCoverageFormat, getInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CoverageTable1(int format,
RandomAccessR rar)
throws java.io.IOException
format - The format.rar - The input.
java.io.IOException - if a io-error occurred.| Method Detail |
|---|
public int[] getGlyphArray()
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 | |||||||||