|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.AbstractXtfTable
org.extex.font.format.xtf.tables.TtfTableHHEA
public class TtfTableHHEA
The 'hhea' table contains information needed to layout fonts whose characters are written horizontally, that is, either left to right or right to left. This table contains information that is general to the font as a whole.
| Type | Name | Description |
| Fixed | Table version number | 0x00010000 for version 1.0. |
| FWord | Ascender | Typographic ascent. |
| FWord | Descender | Typographic descent. |
| LineGap | Typographic line gap. Negative LineGap values are treated as zero in Windows 3.1, System 6, and System 7. |
|
| uFWord | advanceWidthMax | Maximum advance width value in ‘hmtx’ table. |
| FWord | minLeftSideBearing | Minimum left sidebearing value in ‘hmtx’ table. |
| FWord | minRightSideBearing | Minimum right sidebearing value; calculated as Min(aw - lsb - (xMax - xMin)). |
| FWord | xMaxExtent | Max(lsb + (xMax - xMin)). |
| SHORT | <caretSlopeRise | Used to calculate the slope of the cursor (rise/run); 1 for vertical. |
| SHORT | caretSlopeRun | 0 for vertical. |
| SHORT | (reserved) | set to 0 |
| SHORT | (reserved) | set to 0 |
| SHORT | (reserved) | set to 0 |
| SHORT | (reserved) | set to 0 |
| SHORT | (reserved) | set to 0 |
| SHORT | metricDataFormat | 0 for current format. |
| USHORT | numberOfHMetrics | Number of hMetric entries in ‘hmtx’ table; may be smaller than the total number of glyphs in the font. |
| Constructor Summary | |
|---|---|
TtfTableHHEA(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
Create a new object |
|
| Method Summary | |
|---|---|
short |
getAdvanceWidthMax()
Returns the advanceWidthMax. |
short |
getAscender()
Returns the ascender. |
short |
getCaretSlopeRise()
Returns the caretSlopeRise. |
short |
getCaretSlopeRun()
Returns the caretSlopeRun. |
short |
getDescender()
Returns the descender. |
short |
getLineGap()
Returns the lineGap. |
short |
getMetricDataFormat()
Returns the metricDataFormat. |
short |
getMinLeftSideBearing()
Returns the minLeftSideBearing. |
short |
getMinRightSideBearing()
Returns the minRightSideBearing. |
short |
getNumberOfHMetrics()
Returns the numberOfHMetrics. |
java.lang.String |
getShortcut()
Returns the table shortcut. |
int |
getType()
Get the table type, as a table directory value. |
int |
getVersion()
Returns the version. |
short |
getXMaxExtent()
Returns the xMaxExtent. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable |
|---|
getGlyphName, getInitOrder, getTableMap, init, writeStartElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.extex.font.format.xtf.tables.XtfTable |
|---|
getInitOrder, getTableMap, init |
| Constructor Detail |
|---|
public TtfTableHHEA(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
throws java.io.IOException
tablemap - the tablemapde - entryrar - input
java.io.IOException - if an IO-error occurs| Method Detail |
|---|
public short getAdvanceWidthMax()
public short getAscender()
public short getCaretSlopeRise()
public short getCaretSlopeRun()
public short getDescender()
public short getLineGap()
public short getMetricDataFormat()
public short getMinLeftSideBearing()
public short getMinRightSideBearing()
public short getNumberOfHMetrics()
public java.lang.String getShortcut()
getShortcut in interface XtfTableXtfTable.getShortcut()public int getType()
getType in interface XtfTablepublic int getVersion()
public short getXMaxExtent()
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writeXML in interface XMLWriterConvertiblewriter - 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 | |||||||||