com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class TtfHeadTable



  • public class TtfHeadTable
    extends TtfTableBase

    Represents "head" table of the TTF Font file.

    • Method Detail

      • getTag

        public static String getTag()

        Gets table tag.

        Returns:
        Table tag.
      • getVersion

        public float getVersion()

        Fixed version 0x00010000 if (version 1.0).

        Returns:
        Fixed version 0x00010000 if (version 1.0).
      • getFlags

        public int getFlags()

        Gets uint16 flags.

        Returns:
        UInt16 flags.
      • getFontRevision

        public float getFontRevision()

        Get fixed fontRevision set by font manufacturer.

        Returns:
        Fixed fontRevision set by font manufacturer.
      • 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:
        Uint32 checkSumAdjustment.
      • getMagicNumber

        public long getMagicNumber()

        Gets uint32 magicNumber set to 0x5F0F3CF5.

        Returns:
        UInt32 magicNumber set to 0x5F0F3CF5.
      • getUnitsPerEM

        public long getUnitsPerEM()

        Gets uint16 unitsPerEM range from 64 to 16384.

        Returns:
        UInt16 unitsPerEM range from 64 to 16384.
      • getCreated

        public Date getCreated()

        Gets longDateTime created international date.

        Returns:
        LongDateTime created international date.
      • getModified

        public Date getModified()

        Gets longDateTime modified international date.

        Returns:
        LongDateTime modified international date.
      • getXMin

        public short getXMin()

        Gets FWord xMin for all glyph bounding boxes.

        Returns:
        FWord xMin for all glyph bounding boxes.
      • getYMin

        public short getYMin()

        Gets FWord yMin for all glyph bounding boxes.

        Returns:
        FWord yMin for all glyph bounding boxes.
      • getXMax

        public short getXMax()

        Gets FWord xMax for all glyph bounding boxes.

        Returns:
        FWord xMax for all glyph bounding boxes.
      • getYMax

        public short getYMax()

        Gets FWord yMax for all glyph bounding boxes.

        Returns:
        FWord yMax for all glyph bounding boxes.
      • getMacStyle

        public int getMacStyle()

        Gets uint16 macStyle.

        Returns:
        UInt16 macStyle.
      • getLowestRecPPEM

        public int getLowestRecPPEM()

        Gets uint16 lowestRecPPEM smallest readable size in pixels.

        Returns:
        UInt16 lowestRecPPEM smallest readable size in pixels.
      • 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:
        Int16 fontDirectionHint.
      • getIndexToLocFormat

        public short getIndexToLocFormat()

        Gets int16 indexToLocFormat 0 for short offsets, 1 for long.

        Returns:
        Int16 indexToLocFormat 0 for short offsets, 1 for long.
      • getGlyphDataFormat

        public short getGlyphDataFormat()

        Gets int16 glyphDataFormat 0 for current format.

        Returns:
        Int16 glyphDataFormat 0 for current format.