Class NamedStyle

java.lang.Object
com.mta.tehreer.font.NamedStyle

public class NamedStyle extends Object
Represents font named style.
  • Method Details

    • of

      @NonNull public static NamedStyle of(@NonNull String styleName, @NonNull @Size(min=1L) float[] coordinates, @Nullable String postScriptName)
      Returns a named style object with the specified values.
      Parameters:
      styleName - The style name.
      coordinates - The variation coordinates.
      postScriptName - The post script name.
      Returns:
      A new named style object.
    • styleName

      @NonNull public String styleName()
      Returns the style name.
      Returns:
      The style name.
    • coordinates

      @NonNull public float[] coordinates()
      Returns the coordinates.
      Returns:
      The coordinates.
    • postScriptName

      @Nullable public String postScriptName()
      Returns the post script name.
      Returns:
      The post script name.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object