org.extex.font.format.xtf.tables.gps
Class XtfGPOSSingleTable.SingleTableFormat1

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

public static class XtfGPOSSingleTable.SingleTableFormat1
extends XtfGPOSSingleTable
implements XMLWriterConvertible

SingleTable for format 1.

Single Adjustment Positioning: Format 1

A SinglePosFormat1 subtable applies the same positioning value or values to each glyph listed in its Coverage table. For instance, when a font uses old-style numerals, this format could be applied to uniformly lower the position of all math operator glyphs.

The Format 1 subtable consists of a format identifier (PosFormat), an offset to a Coverage table that defines the glyphs to be adjusted by the positioning values (Coverage), and the format identifier (ValueFormat) that describes the amount and kinds of data in the ValueRecord.

The ValueRecord specifies one or more positioning values to be applied to all covered glyphs (Value). For example, if all glyphs in the Coverage table require both horizontal and vertical adjustments, the ValueRecord will specify values for both XPlacement and Yplacement.

SinglePosFormat1 subtable: Single positioning value

Value Type Description
uint16 PosFormat Format identifier-format = 1
Offset Coverage Offset to Coverage table-from beginning of SinglePos subtable
uint16 ValueFormat Defines the types of data in the ValueRecord
ValueRecord Value Defines positioning value(s)-applied to all glyphs in the Coverage table


Nested Class Summary
 
Nested classes/interfaces inherited from class org.extex.font.format.xtf.tables.gps.XtfGPOSSingleTable
XtfGPOSSingleTable.SingleTableFormat1, XtfGPOSSingleTable.SingleTableFormat2
 
Field Summary
 
Fields inherited from class org.extex.font.format.xtf.tables.gps.XtfGPOSSingleTable
coverage
 
Fields inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
count
 
Method Summary
 ValueRecord getValueRecord(int glyph)
          Returns the ValueRecord for the glyph.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.gps.XtfGPOSSingleTable
getCoverage, newInstance
 
Methods inherited from class org.extex.font.format.xtf.tables.gps.XtfLookupTable
getCount, getFormat, getXtfGlyph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValueRecord

public ValueRecord getValueRecord(int glyph)
Returns the ValueRecord for the glyph.

Specified by:
getValueRecord in class XtfGPOSSingleTable
Parameters:
glyph - The glyph.
Returns:
Returns the ValueRecord for the glyph or null, if not found.
See Also:
XtfGPOSSingleTable.getValueRecord(int)

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)