TtfHeadTable
Inheritance: java.lang.Object, com.aspose.font.TtfTableBase
public class TtfHeadTable extends TtfTableBase
Represents “head” table of the TTF Font file.
Methods
| Method | Description |
|---|---|
| equals(Object arg0) | |
| getCheckSumAdjustment() | Gets uint32 checkSumAdjustment. |
| getClass() | |
| getCreated() | Gets longDateTime created international date. |
| getFlags() | Gets uint16 flags. |
| getFontDirectionHint() | Gets int16 fontDirectionHint. 0 Mixed directional glyphs; 1 Only strongly left to right glyphs; 2 Like 1 but also contains neutrals; -1 Only strongly right to left glyphs; -2 Like -1 but also contains neutrals. |
| getFontRevision() | Get fixed fontRevision set by font manufacturer. |
| getGlyphDataFormat() | Gets int16 glyphDataFormat 0 for current format. |
| getIndexToLocFormat() | Gets int16 indexToLocFormat 0 for short offsets, 1 for long. |
| getLowestRecPPEM() | Gets uint16 lowestRecPPEM smallest readable size in pixels. |
| getMacStyle() | Gets uint16 macStyle. |
| getMagicNumber() | Gets uint32 magicNumber set to 0x5F0F3CF5. |
| getModified() | Gets longDateTime modified international date. |
| getOffset() | Gets offset from beginning of sfnt. |
| getTag() | Gets table tag. |
| getTtfTables() | Reference to TTF table repository. |
| getUnitsPerEM() | Gets uint16 unitsPerEM range from 64 to 16384. |
| getVersion() | Fixed version 0x00010000 if (version 1.0). |
| getXMax() | Gets FWord xMax for all glyph bounding boxes. |
| getXMin() | Gets FWord xMin for all glyph bounding boxes. |
| getYMax() | Gets FWord yMax for all glyph bounding boxes. |
| getYMin() | Gets FWord yMin for all glyph bounding boxes. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getCheckSumAdjustment()
public long getCheckSumAdjustment()
Gets uint32 checkSumAdjustment. To compute: set it to 0, calculate the checksum for the ‘head’ table and put it in the table directory, sum the entire font as uint32, then store B1B0AFBA - sum. The checksum for the ‘head’ table will not be wrong. That is OK.
Returns: long - Uint32 checkSumAdjustment.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCreated()
public Date getCreated()
Gets longDateTime created international date.
Returns: java.util.Date - LongDateTime created international date.
getFlags()
public int getFlags()
Gets uint16 flags.
Returns: int - UInt16 flags.
getFontDirectionHint()
public short getFontDirectionHint()
Gets int16 fontDirectionHint. 0 Mixed directional glyphs; 1 Only strongly left to right glyphs; 2 Like 1 but also contains neutrals; -1 Only strongly right to left glyphs; -2 Like -1 but also contains neutrals.
Returns: short - Int16 fontDirectionHint.
getFontRevision()
public float getFontRevision()
Get fixed fontRevision set by font manufacturer.
Returns: float - Fixed fontRevision set by font manufacturer.
getGlyphDataFormat()
public short getGlyphDataFormat()
Gets int16 glyphDataFormat 0 for current format.
Returns: short - Int16 glyphDataFormat 0 for current format.
getIndexToLocFormat()
public short getIndexToLocFormat()
Gets int16 indexToLocFormat 0 for short offsets, 1 for long.
Returns: short - Int16 indexToLocFormat 0 for short offsets, 1 for long.
getLowestRecPPEM()
public int getLowestRecPPEM()
Gets uint16 lowestRecPPEM smallest readable size in pixels.
Returns: int - UInt16 lowestRecPPEM smallest readable size in pixels.
getMacStyle()
public int getMacStyle()
Gets uint16 macStyle.
Returns: int - UInt16 macStyle.
getMagicNumber()
public long getMagicNumber()
Gets uint32 magicNumber set to 0x5F0F3CF5.
Returns: long - UInt32 magicNumber set to 0x5F0F3CF5.
getModified()
public Date getModified()
Gets longDateTime modified international date.
Returns: java.util.Date - LongDateTime modified international date.
getOffset()
public long getOffset()
Gets offset from beginning of sfnt.
Returns: long - Offset from beginning of sfnt.
getTag()
public static String getTag()
Gets table tag.
Returns: java.lang.String - Table tag.
getTtfTables()
public TtfTableRepository getTtfTables()
Reference to TTF table repository.
Returns: TtfTableRepository - Reference to TTF table repository.
getUnitsPerEM()
public long getUnitsPerEM()
Gets uint16 unitsPerEM range from 64 to 16384.
Returns: long - UInt16 unitsPerEM range from 64 to 16384.
getVersion()
public float getVersion()
Fixed version 0x00010000 if (version 1.0).
Returns: float - Fixed version 0x00010000 if (version 1.0).
getXMax()
public short getXMax()
Gets FWord xMax for all glyph bounding boxes.
Returns: short - FWord xMax for all glyph bounding boxes.
getXMin()
public short getXMin()
Gets FWord xMin for all glyph bounding boxes.
Returns: short - FWord xMin for all glyph bounding boxes.
getYMax()
public short getYMax()
Gets FWord yMax for all glyph bounding boxes.
Returns: short - FWord yMax for all glyph bounding boxes.
getYMin()
public short getYMin()
Gets FWord yMin for all glyph bounding boxes.
Returns: short - FWord yMin for all glyph bounding boxes.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |