Class TT_OS2

All Implemented Interfaces:
Pointer

public class TT_OS2 extends Struct<TT_OS2>

 struct TT_OS2 {
     FT_UShort version;
     FT_Short xAvgCharWidth;
     FT_UShort usWeightClass;
     FT_UShort usWidthClass;
     FT_UShort fsType;
     FT_Short ySubscriptXSize;
     FT_Short ySubscriptYSize;
     FT_Short ySubscriptXOffset;
     FT_Short ySubscriptYOffset;
     FT_Short ySuperscriptXSize;
     FT_Short ySuperscriptYSize;
     FT_Short ySuperscriptXOffset;
     FT_Short ySuperscriptYOffset;
     FT_Short yStrikeoutSize;
     FT_Short yStrikeoutPosition;
     FT_Short sFamilyClass;
     FT_Byte panose[10];
     FT_ULong ulUnicodeRange1;
     FT_ULong ulUnicodeRange2;
     FT_ULong ulUnicodeRange3;
     FT_ULong ulUnicodeRange4;
     FT_Char achVendID[4];
     FT_UShort fsSelection;
     FT_UShort usFirstCharIndex;
     FT_UShort usLastCharIndex;
     FT_Short sTypoAscender;
     FT_Short sTypoDescender;
     FT_Short sTypoLineGap;
     FT_UShort usWinAscent;
     FT_UShort usWinDescent;
     FT_ULong ulCodePageRange1;
     FT_ULong ulCodePageRange2;
     FT_Short sxHeight;
     FT_Short sCapHeight;
     FT_UShort usDefaultChar;
     FT_UShort usBreakChar;
     FT_UShort usMaxContext;
     FT_UShort usLowerOpticalPointSize;
     FT_UShort usUpperOpticalPointSize;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • VERSION

      public static final int VERSION
      The struct member offsets.
    • XAVGCHARWIDTH

      public static final int XAVGCHARWIDTH
      The struct member offsets.
    • USWEIGHTCLASS

      public static final int USWEIGHTCLASS
      The struct member offsets.
    • USWIDTHCLASS

      public static final int USWIDTHCLASS
      The struct member offsets.
    • FSTYPE

      public static final int FSTYPE
      The struct member offsets.
    • YSUBSCRIPTXSIZE

      public static final int YSUBSCRIPTXSIZE
      The struct member offsets.
    • YSUBSCRIPTYSIZE

      public static final int YSUBSCRIPTYSIZE
      The struct member offsets.
    • YSUBSCRIPTXOFFSET

      public static final int YSUBSCRIPTXOFFSET
      The struct member offsets.
    • YSUBSCRIPTYOFFSET

      public static final int YSUBSCRIPTYOFFSET
      The struct member offsets.
    • YSUPERSCRIPTXSIZE

      public static final int YSUPERSCRIPTXSIZE
      The struct member offsets.
    • YSUPERSCRIPTYSIZE

      public static final int YSUPERSCRIPTYSIZE
      The struct member offsets.
    • YSUPERSCRIPTXOFFSET

      public static final int YSUPERSCRIPTXOFFSET
      The struct member offsets.
    • YSUPERSCRIPTYOFFSET

      public static final int YSUPERSCRIPTYOFFSET
      The struct member offsets.
    • YSTRIKEOUTSIZE

      public static final int YSTRIKEOUTSIZE
      The struct member offsets.
    • YSTRIKEOUTPOSITION

      public static final int YSTRIKEOUTPOSITION
      The struct member offsets.
    • SFAMILYCLASS

      public static final int SFAMILYCLASS
      The struct member offsets.
    • PANOSE

      public static final int PANOSE
      The struct member offsets.
    • ULUNICODERANGE1

      public static final int ULUNICODERANGE1
      The struct member offsets.
    • ULUNICODERANGE2

      public static final int ULUNICODERANGE2
      The struct member offsets.
    • ULUNICODERANGE3

      public static final int ULUNICODERANGE3
      The struct member offsets.
    • ULUNICODERANGE4

      public static final int ULUNICODERANGE4
      The struct member offsets.
    • ACHVENDID

      public static final int ACHVENDID
      The struct member offsets.
    • FSSELECTION

      public static final int FSSELECTION
      The struct member offsets.
    • USFIRSTCHARINDEX

      public static final int USFIRSTCHARINDEX
      The struct member offsets.
    • USLASTCHARINDEX

      public static final int USLASTCHARINDEX
      The struct member offsets.
    • STYPOASCENDER

      public static final int STYPOASCENDER
      The struct member offsets.
    • STYPODESCENDER

      public static final int STYPODESCENDER
      The struct member offsets.
    • STYPOLINEGAP

      public static final int STYPOLINEGAP
      The struct member offsets.
    • USWINASCENT

      public static final int USWINASCENT
      The struct member offsets.
    • USWINDESCENT

      public static final int USWINDESCENT
      The struct member offsets.
    • ULCODEPAGERANGE1

      public static final int ULCODEPAGERANGE1
      The struct member offsets.
    • ULCODEPAGERANGE2

      public static final int ULCODEPAGERANGE2
      The struct member offsets.
    • SXHEIGHT

      public static final int SXHEIGHT
      The struct member offsets.
    • SCAPHEIGHT

      public static final int SCAPHEIGHT
      The struct member offsets.
    • USDEFAULTCHAR

      public static final int USDEFAULTCHAR
      The struct member offsets.
    • USBREAKCHAR

      public static final int USBREAKCHAR
      The struct member offsets.
    • USMAXCONTEXT

      public static final int USMAXCONTEXT
      The struct member offsets.
    • USLOWEROPTICALPOINTSIZE

      public static final int USLOWEROPTICALPOINTSIZE
      The struct member offsets.
    • USUPPEROPTICALPOINTSIZE

      public static final int USUPPEROPTICALPOINTSIZE
      The struct member offsets.
  • Constructor Details

    • TT_OS2

      public TT_OS2(ByteBuffer container)
      Creates a TT_OS2 instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<TT_OS2>
    • version

      public short version()
      Returns:
      the value of the version field.
    • xAvgCharWidth

      public short xAvgCharWidth()
      Returns:
      the value of the xAvgCharWidth field.
    • usWeightClass

      public short usWeightClass()
      Returns:
      the value of the usWeightClass field.
    • usWidthClass

      public short usWidthClass()
      Returns:
      the value of the usWidthClass field.
    • fsType

      public short fsType()
      Returns:
      the value of the fsType field.
    • ySubscriptXSize

      public short ySubscriptXSize()
      Returns:
      the value of the ySubscriptXSize field.
    • ySubscriptYSize

      public short ySubscriptYSize()
      Returns:
      the value of the ySubscriptYSize field.
    • ySubscriptXOffset

      public short ySubscriptXOffset()
      Returns:
      the value of the ySubscriptXOffset field.
    • ySubscriptYOffset

      public short ySubscriptYOffset()
      Returns:
      the value of the ySubscriptYOffset field.
    • ySuperscriptXSize

      public short ySuperscriptXSize()
      Returns:
      the value of the ySuperscriptXSize field.
    • ySuperscriptYSize

      public short ySuperscriptYSize()
      Returns:
      the value of the ySuperscriptYSize field.
    • ySuperscriptXOffset

      public short ySuperscriptXOffset()
      Returns:
      the value of the ySuperscriptXOffset field.
    • ySuperscriptYOffset

      public short ySuperscriptYOffset()
      Returns:
      the value of the ySuperscriptYOffset field.
    • yStrikeoutSize

      public short yStrikeoutSize()
      Returns:
      the value of the yStrikeoutSize field.
    • yStrikeoutPosition

      public short yStrikeoutPosition()
      Returns:
      the value of the yStrikeoutPosition field.
    • sFamilyClass

      public short sFamilyClass()
      Returns:
      the value of the sFamilyClass field.
    • panose

      public ByteBuffer panose()
      Returns:
      a ByteBuffer view of the panose field.
    • panose

      public byte panose(int index)
      Returns:
      the value at the specified index of the panose field.
    • ulUnicodeRange1

      public long ulUnicodeRange1()
      Returns:
      the value of the ulUnicodeRange1 field.
    • ulUnicodeRange2

      public long ulUnicodeRange2()
      Returns:
      the value of the ulUnicodeRange2 field.
    • ulUnicodeRange3

      public long ulUnicodeRange3()
      Returns:
      the value of the ulUnicodeRange3 field.
    • ulUnicodeRange4

      public long ulUnicodeRange4()
      Returns:
      the value of the ulUnicodeRange4 field.
    • achVendID

      public ByteBuffer achVendID()
      Returns:
      a ByteBuffer view of the achVendID field.
    • achVendID

      public byte achVendID(int index)
      Returns:
      the value at the specified index of the achVendID field.
    • fsSelection

      public short fsSelection()
      Returns:
      the value of the fsSelection field.
    • usFirstCharIndex

      public short usFirstCharIndex()
      Returns:
      the value of the usFirstCharIndex field.
    • usLastCharIndex

      public short usLastCharIndex()
      Returns:
      the value of the usLastCharIndex field.
    • sTypoAscender

      public short sTypoAscender()
      Returns:
      the value of the sTypoAscender field.
    • sTypoDescender

      public short sTypoDescender()
      Returns:
      the value of the sTypoDescender field.
    • sTypoLineGap

      public short sTypoLineGap()
      Returns:
      the value of the sTypoLineGap field.
    • usWinAscent

      public short usWinAscent()
      Returns:
      the value of the usWinAscent field.
    • usWinDescent

      public short usWinDescent()
      Returns:
      the value of the usWinDescent field.
    • ulCodePageRange1

      public long ulCodePageRange1()
      Returns:
      the value of the ulCodePageRange1 field.
    • ulCodePageRange2

      public long ulCodePageRange2()
      Returns:
      the value of the ulCodePageRange2 field.
    • sxHeight

      public short sxHeight()
      Returns:
      the value of the sxHeight field.
    • sCapHeight

      public short sCapHeight()
      Returns:
      the value of the sCapHeight field.
    • usDefaultChar

      public short usDefaultChar()
      Returns:
      the value of the usDefaultChar field.
    • usBreakChar

      public short usBreakChar()
      Returns:
      the value of the usBreakChar field.
    • usMaxContext

      public short usMaxContext()
      Returns:
      the value of the usMaxContext field.
    • usLowerOpticalPointSize

      public short usLowerOpticalPointSize()
      Returns:
      the value of the usLowerOpticalPointSize field.
    • usUpperOpticalPointSize

      public short usUpperOpticalPointSize()
      Returns:
      the value of the usUpperOpticalPointSize field.
    • create

      public static TT_OS2 create(long address)
      Returns a new TT_OS2 instance for the specified memory address.
    • createSafe

      public static @Nullable TT_OS2 createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static TT_OS2.Buffer create(long address, int capacity)
      Create a TT_OS2.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable TT_OS2.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nversion

      public static short nversion(long struct)
      Unsafe version of version().
    • nxAvgCharWidth

      public static short nxAvgCharWidth(long struct)
      Unsafe version of xAvgCharWidth().
    • nusWeightClass

      public static short nusWeightClass(long struct)
      Unsafe version of usWeightClass().
    • nusWidthClass

      public static short nusWidthClass(long struct)
      Unsafe version of usWidthClass().
    • nfsType

      public static short nfsType(long struct)
      Unsafe version of fsType().
    • nySubscriptXSize

      public static short nySubscriptXSize(long struct)
      Unsafe version of ySubscriptXSize().
    • nySubscriptYSize

      public static short nySubscriptYSize(long struct)
      Unsafe version of ySubscriptYSize().
    • nySubscriptXOffset

      public static short nySubscriptXOffset(long struct)
      Unsafe version of ySubscriptXOffset().
    • nySubscriptYOffset

      public static short nySubscriptYOffset(long struct)
      Unsafe version of ySubscriptYOffset().
    • nySuperscriptXSize

      public static short nySuperscriptXSize(long struct)
      Unsafe version of ySuperscriptXSize().
    • nySuperscriptYSize

      public static short nySuperscriptYSize(long struct)
      Unsafe version of ySuperscriptYSize().
    • nySuperscriptXOffset

      public static short nySuperscriptXOffset(long struct)
      Unsafe version of ySuperscriptXOffset().
    • nySuperscriptYOffset

      public static short nySuperscriptYOffset(long struct)
      Unsafe version of ySuperscriptYOffset().
    • nyStrikeoutSize

      public static short nyStrikeoutSize(long struct)
      Unsafe version of yStrikeoutSize().
    • nyStrikeoutPosition

      public static short nyStrikeoutPosition(long struct)
      Unsafe version of yStrikeoutPosition().
    • nsFamilyClass

      public static short nsFamilyClass(long struct)
      Unsafe version of sFamilyClass().
    • npanose

      public static ByteBuffer npanose(long struct)
      Unsafe version of panose().
    • npanose

      public static byte npanose(long struct, int index)
      Unsafe version of panose.
    • nulUnicodeRange1

      public static long nulUnicodeRange1(long struct)
      Unsafe version of ulUnicodeRange1().
    • nulUnicodeRange2

      public static long nulUnicodeRange2(long struct)
      Unsafe version of ulUnicodeRange2().
    • nulUnicodeRange3

      public static long nulUnicodeRange3(long struct)
      Unsafe version of ulUnicodeRange3().
    • nulUnicodeRange4

      public static long nulUnicodeRange4(long struct)
      Unsafe version of ulUnicodeRange4().
    • nachVendID

      public static ByteBuffer nachVendID(long struct)
      Unsafe version of achVendID().
    • nachVendID

      public static byte nachVendID(long struct, int index)
      Unsafe version of achVendID.
    • nfsSelection

      public static short nfsSelection(long struct)
      Unsafe version of fsSelection().
    • nusFirstCharIndex

      public static short nusFirstCharIndex(long struct)
      Unsafe version of usFirstCharIndex().
    • nusLastCharIndex

      public static short nusLastCharIndex(long struct)
      Unsafe version of usLastCharIndex().
    • nsTypoAscender

      public static short nsTypoAscender(long struct)
      Unsafe version of sTypoAscender().
    • nsTypoDescender

      public static short nsTypoDescender(long struct)
      Unsafe version of sTypoDescender().
    • nsTypoLineGap

      public static short nsTypoLineGap(long struct)
      Unsafe version of sTypoLineGap().
    • nusWinAscent

      public static short nusWinAscent(long struct)
      Unsafe version of usWinAscent().
    • nusWinDescent

      public static short nusWinDescent(long struct)
      Unsafe version of usWinDescent().
    • nulCodePageRange1

      public static long nulCodePageRange1(long struct)
      Unsafe version of ulCodePageRange1().
    • nulCodePageRange2

      public static long nulCodePageRange2(long struct)
      Unsafe version of ulCodePageRange2().
    • nsxHeight

      public static short nsxHeight(long struct)
      Unsafe version of sxHeight().
    • nsCapHeight

      public static short nsCapHeight(long struct)
      Unsafe version of sCapHeight().
    • nusDefaultChar

      public static short nusDefaultChar(long struct)
      Unsafe version of usDefaultChar().
    • nusBreakChar

      public static short nusBreakChar(long struct)
      Unsafe version of usBreakChar().
    • nusMaxContext

      public static short nusMaxContext(long struct)
      Unsafe version of usMaxContext().
    • nusLowerOpticalPointSize

      public static short nusLowerOpticalPointSize(long struct)
      Unsafe version of usLowerOpticalPointSize().
    • nusUpperOpticalPointSize

      public static short nusUpperOpticalPointSize(long struct)
      Unsafe version of usUpperOpticalPointSize().