Class MaxpTable

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

public final class MaxpTable extends Object
Represents an OpenType `maxp' table.
  • Constructor Details

    • MaxpTable

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

    • from

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

      public int version()
    • numGlyphs

      public int numGlyphs()
    • maxPoints

      public int maxPoints()
    • maxContours

      public int maxContours()
    • maxCompositePoints

      public int maxCompositePoints()
    • maxCompositeContours

      public int maxCompositeContours()
    • maxZones

      public int maxZones()
    • maxTwilightPoints

      public int maxTwilightPoints()
    • maxStorage

      public int maxStorage()
    • maxFunctionDefs

      public int maxFunctionDefs()
    • maxInstructionDefs

      public int maxInstructionDefs()
    • maxStackElements

      public int maxStackElements()
    • maxSizeOfInstructions

      public int maxSizeOfInstructions()
    • maxComponentElements

      public int maxComponentElements()
    • maxComponentDepth

      public int maxComponentDepth()