Class OS2Table

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

public final class OS2Table extends Object
Represents an OpenType `OS/2' table.
  • Constructor Details

    • OS2Table

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

    • from

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

      public int version()
    • xAvgCharWidth

      public short xAvgCharWidth()
    • usWeightClass

      public int usWeightClass()
    • usWidthClass

      public int usWidthClass()
    • fsType

      public int fsType()
    • ySubscriptXSize

      public short ySubscriptXSize()
    • ySubscriptYSize

      public short ySubscriptYSize()
    • ySubscriptXOffset

      public short ySubscriptXOffset()
    • ySubscriptYOffset

      public short ySubscriptYOffset()
    • ySuperscriptXSize

      public short ySuperscriptXSize()
    • ySuperscriptYSize

      public short ySuperscriptYSize()
    • ySuperscriptXOffset

      public short ySuperscriptXOffset()
    • ySuperscriptYOffset

      public short ySuperscriptYOffset()
    • yStrikeoutSize

      public short yStrikeoutSize()
    • yStrikeoutPosition

      public short yStrikeoutPosition()
    • sFamilyClass

      public short sFamilyClass()
    • panose

      public byte[] panose()
    • ulUnicodeRange1

      public long ulUnicodeRange1()
    • ulUnicodeRange2

      public long ulUnicodeRange2()
    • ulUnicodeRange3

      public long ulUnicodeRange3()
    • ulUnicodeRange4

      public long ulUnicodeRange4()
    • achVendID

      public int achVendID()
    • fsSelection

      public int fsSelection()
    • usFirstCharIndex

      public int usFirstCharIndex()
    • usLastCharIndex

      public int usLastCharIndex()
    • sTypoAscender

      public short sTypoAscender()
    • sTypoDescender

      public short sTypoDescender()
    • sTypoLineGap

      public short sTypoLineGap()
    • usWinAscent

      public int usWinAscent()
    • usWinDescent

      public int usWinDescent()
    • ulCodePageRange1

      public long ulCodePageRange1()
    • ulCodePageRange2

      public long ulCodePageRange2()
    • sxHeight

      public short sxHeight()
    • sCapHeight

      public short sCapHeight()
    • usDefaultChar

      public int usDefaultChar()
    • usBreakChar

      public int usBreakChar()
    • usMaxContext

      public int usMaxContext()
    • usLowerOpticalPointSize

      public int usLowerOpticalPointSize()
    • usUpperOpticalPointSize

      public int usUpperOpticalPointSize()