org.extex.font.format.xtf.tables.gps
Class XtfCoverage.CoverageFormat1

java.lang.Object
  extended by org.extex.font.format.xtf.tables.gps.XtfCoverage
      extended by org.extex.font.format.xtf.tables.gps.XtfCoverage.CoverageFormat1
All Implemented Interfaces:
XMLWriterConvertible
Enclosing class:
XtfCoverage

public static class XtfCoverage.CoverageFormat1
extends XtfCoverage
implements XMLWriterConvertible

Coverage for FORMAT1


Nested Class Summary
 
Nested classes/interfaces inherited from class org.extex.font.format.xtf.tables.gps.XtfCoverage
XtfCoverage.CoverageFormat1, XtfCoverage.CoverageFormat2, XtfCoverage.RangeRecord
 
Method Summary
 int findGlyph(int glyphId)
          Returns the index of the glyph in the coverage table.
 int[] getGlyphs()
          Returns the glyphs from the coverage.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.gps.XtfCoverage
getFormat, getXtfGlyph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findGlyph

public int findGlyph(int glyphId)
Returns the index of the glyph in the coverage table.

Specified by:
findGlyph in class XtfCoverage
Parameters:
glyphId - The ID of the glyph to find.
Returns:
Returns the index of the glyph within the coverage, or -1 if the glyph can't be found.
See Also:
XtfCoverage.findGlyph(int)

getGlyphs

public int[] getGlyphs()
Returns the glyphs from the coverage.

Specified by:
getGlyphs in class XtfCoverage
Returns:
Returns the glyphs from the coverage.
See Also:
XtfCoverage.getGlyphs()

writeXML

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

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