Class HeadTable

java.lang.Object
com.mta.tehreer.sfnt.tables.HeadTable

public final class HeadTable extends Object
Represents an OpenType `head' table.
  • Constructor Details

    • HeadTable

      public HeadTable(@NonNull Typeface typeface)
      Constructs a HeadTable object from the specified typeface.
      Parameters:
      typeface - The typeface from which the HeadTable object is constructed.
      Throws:
      NullPointerException - if typeface is null.
      RuntimeException - if typeface does not contain `head' table.
  • Method Details

    • from

      @Nullable public static HeadTable from(@NonNull Typeface typeface)
      Constructs a HeadTable object from the specified typeface.
      Parameters:
      typeface - The typeface from which the HeadTable object is constructed.
      Returns:
      A new HeadTable object, or null if `head' table does not exist in the specified typeface.
      Throws:
      NullPointerException - if typeface is null.
    • version

      public int version()
    • fontRevision

      public int fontRevision()
    • checkSumAdjustment

      public long checkSumAdjustment()
    • magicNumber

      public long magicNumber()
    • flags

      public int flags()
    • unitsPerEm

      public int unitsPerEm()
    • created

      public long created()
    • modified

      public long modified()
    • xMin

      public short xMin()
    • yMin

      public short yMin()
    • xMax

      public short xMax()
    • yMax

      public short yMax()
    • macStyle

      public int macStyle()
    • lowestRecPPEM

      public int lowestRecPPEM()
    • fontDirectionHint

      public short fontDirectionHint()
    • indexToLocFormat

      public short indexToLocFormat()
    • glyphDataFormat

      public short glyphDataFormat()