Class HheaTable

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

public final class HheaTable extends Object
Represents an OpenType `hhea' table.
  • Constructor Details

    • HheaTable

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

    • from

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

      public int version()
    • ascender

      public short ascender()
    • descender

      public short descender()
    • lineGap

      public short lineGap()
    • advanceWidthMax

      public int advanceWidthMax()
    • minLeftSideBearing

      public short minLeftSideBearing()
    • minRightSideBearing

      public short minRightSideBearing()
    • xMaxExtent

      public short xMaxExtent()
    • caretSlopeRise

      public short caretSlopeRise()
    • caretSlopeRun

      public short caretSlopeRun()
    • caretOffset

      public short caretOffset()
    • metricDataFormat

      public short metricDataFormat()
    • numberOfHMetrics

      public int numberOfHMetrics()