Class SfntTag

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

public class SfntTag extends Object
Provides static utility methods related to SFNT tags.
  • Method Details

    • make

      public static int make(@NonNull @Size(4L) String tagStr)
      Makes a four-byte integer, representing the passed-in tag as a string.
      Parameters:
      tagStr - The tag string to represent as an integer.
      Returns:
      Integer representation of the tag.
      Throws:
      IllegalArgumentException - if tagStr is not four characters long, or any character is not a printing character represented by ASCII values 32-126.
    • toString

      public static String toString(int tag)
      Returns the string representation of a tag.
      Parameters:
      tag - The tag.
      Returns:
      The string representation of specified tag.