|
||||||||||
| 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.TtfTableHEAD
public class TtfTableHEAD
The 'head' table contains global information about the font. It records such facts as the font version number, the creation and modification dates, revision number and basic typographic data that applies to the font as a whole. This includes a specification of the font bounding box, the direction in which the font's glyphs are most likely to be written and other information about the placement of glyphs in the em square.
| Type | Name | Description |
| Fixed | Table version number | 0x00010000 for version 1.0. |
| Fixed | fontRevision | Set by font manufacturer. |
| ULONG | checkSumAdjustment | To compute: set it to 0, sum the entire font as ULONG, then store 0xB1B0AFBA - sum. |
| ULONG | magicNumber | Set to 0x5F0F3CF5. |
| USHORT | flags |
Bit 0 - baseline for font at y=0; Bit 1 - left sidebearing at x=0; Bit 2 - instructions may depend on point size; Bit 3 - force ppem to integer values for all internal scaler math; may use fractional ppem sizes if this bit is clear; Bit 4 - instructions may alter advance width (the advance widths might not scale linearly); Note: All other bits must be zero. |
| USHORT | unitsPerEm | Valid range is from 16 to 16384 |
| longDateTime | created | International date (8-byte field). |
| longDateTime | modified | International date (8-byte field). |
| FWord | xMin | For all glyph bounding boxes. |
| FWord | yMin | For all glyph bounding boxes. |
| FWord | xMax | For all glyph bounding boxes. |
| FWord | yMax | For all glyph bounding boxes. |
| USHORT | macStyle | Bit 0 bold (if set to 1); Bit 1 italic (if set to 1) Bits 2-15 reserved (set to 0). |
| USHORT | lowestRecPPEM | Smallest readable size in pixels. |
| SHORT | fontDirectionHint |
0 Fully mixed directional glyphs; 1 Only strongly left to right; 2 Like 1 but also contains neutrals 1; -1 Only strongly right to left; -2 Like -1 but also contains neutrals. |
| SHORT | indexToLocFormat | 0 for short offsets, 1 for long. |
| SHORT | glyphDataFormat | 0 for current format. |
| Constructor Summary | |
|---|---|
TtfTableHEAD(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
Create a new object. |
|
| Method Summary | |
|---|---|
int |
getCheckSumAdjustment()
Returns the checkSumAdjustment. |
long |
getCreated()
Returns the created. |
short |
getFlags()
Returns the flags. |
short |
getFontDirectionHint()
Returns the fontDirectionHint. |
Fixed32 |
getFontRevision()
Returns the fontRevision. |
short |
getGlyphDataFormat()
Returns the glyphDataFormat. |
short |
getIndexToLocFormat()
Returns the indexToLocFormat. |
short |
getLowestRecPPEM()
Returns the lowestRecPPEM. |
short |
getMacStyle()
Returns the macStyle. |
int |
getMagicNumber()
Returns the magicNumber. |
long |
getModified()
Returns the modified. |
java.lang.String |
getShortcut()
Returns the table shortcut. |
int |
getType()
Get the table type, as a table directory value. |
short |
getUnitsPerEm()
Returns the unitsPerEm. |
int |
getVersion()
Returns the version. |
short |
getXMax()
Returns the xMax. |
short |
getXMin()
Returns the xMin. |
short |
getYMax()
Returns the yMax. |
short |
getYMin()
Returns the yMin. |
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 TtfTableHEAD(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 int getCheckSumAdjustment()
public long getCreated()
public short getFlags()
public short getFontDirectionHint()
public Fixed32 getFontRevision()
public short getGlyphDataFormat()
public short getIndexToLocFormat()
public short getLowestRecPPEM()
public short getMacStyle()
public int getMagicNumber()
public long getModified()
public java.lang.String getShortcut()
getShortcut in interface XtfTableXtfTable.getShortcut()public int getType()
getType in interface XtfTablepublic short getUnitsPerEm()
public int getVersion()
public short getXMax()
public short getXMin()
public short getYMax()
public short getYMin()
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 | |||||||||