public class TtfHeadTable extends TtfTableBase
Represents "head" table of the TTF Font file.
Modifier and Type | Method and Description |
---|---|
long |
getCheckSumAdjustment()
Gets uint32 checkSumAdjustment.
|
Date |
getCreated()
Gets longDateTime created international date.
|
int |
getFlags()
Gets uint16 flags.
|
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.
|
float |
getFontRevision()
Get fixed fontRevision set by font manufacturer.
|
short |
getGlyphDataFormat()
Gets int16 glyphDataFormat 0 for current format.
|
short |
getIndexToLocFormat()
Gets int16 indexToLocFormat 0 for short offsets, 1 for long.
|
int |
getLowestRecPPEM()
Gets uint16 lowestRecPPEM smallest readable size in pixels.
|
int |
getMacStyle()
Gets uint16 macStyle.
|
long |
getMagicNumber()
Gets uint32 magicNumber set to 0x5F0F3CF5.
|
Date |
getModified()
Gets longDateTime modified international date.
|
static String |
getTag()
Gets table tag.
|
long |
getUnitsPerEM()
Gets uint16 unitsPerEM range from 64 to 16384.
|
float |
getVersion()
Fixed version 0x00010000 if (version 1.0).
|
short |
getXMax()
Gets FWord xMax for all glyph bounding boxes.
|
short |
getXMin()
Gets FWord xMin for all glyph bounding boxes.
|
short |
getYMax()
Gets FWord yMax for all glyph bounding boxes.
|
short |
getYMin()
Gets FWord yMin for all glyph bounding boxes.
|
getLength, getOffset, getTtfTables
public static String getTag()
Gets table tag.
public float getVersion()
Fixed version 0x00010000 if (version 1.0).
public int getFlags()
Gets uint16 flags.
public float getFontRevision()
Get fixed fontRevision set by font manufacturer.
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.
public long getMagicNumber()
Gets uint32 magicNumber set to 0x5F0F3CF5.
public long getUnitsPerEM()
Gets uint16 unitsPerEM range from 64 to 16384.
public Date getCreated()
Gets longDateTime created international date.
public Date getModified()
Gets longDateTime modified international date.
public short getXMin()
Gets FWord xMin for all glyph bounding boxes.
public short getYMin()
Gets FWord yMin for all glyph bounding boxes.
public short getXMax()
Gets FWord xMax for all glyph bounding boxes.
public short getYMax()
Gets FWord yMax for all glyph bounding boxes.
public int getMacStyle()
Gets uint16 macStyle.
public int getLowestRecPPEM()
Gets uint16 lowestRecPPEM smallest readable size in pixels.
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.
public short getIndexToLocFormat()
Gets int16 indexToLocFormat 0 for short offsets, 1 for long.
public short getGlyphDataFormat()
Gets int16 glyphDataFormat 0 for current format.