Class OpenTypeFeature

java.lang.Object
com.mta.tehreer.sfnt.OpenTypeFeature

public final class OpenTypeFeature extends Object
Represents an OpenType Layout feature.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    of(int tag, int value)
    Returns an open type feature object with the specified tag and value.
    int
    tag()
    Returns the tag of the feature that identifies its typographic function and effects.
     
    int
    Returns the value of the feature that modifies its behaviour.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • of

      @NonNull public static OpenTypeFeature of(int tag, int value)
      Returns an open type feature object with the specified tag and value.

      A tag can be created from string by using SfntTag.make(String) method.

      Parameters:
      tag - The tag of the feature that identifies its typographic function and effects.
      value - The value of the feature that modifies its behaviour.
      Returns:
      A new open type feature object.
    • tag

      public int tag()
      Returns the tag of the feature that identifies its typographic function and effects.
      Returns:
      The tag of the feature that identifies its typographic function and effects.
    • value

      public int value()
      Returns the value of the feature that modifies its behaviour.
      Returns:
      The value of the feature that modifies its behaviour.
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object