Class TT_Header

All Implemented Interfaces:
Pointer

public class TT_Header extends Struct<TT_Header>

 struct TT_Header {
     FT_Fixed Table_Version;
     FT_Fixed Font_Revision;
     FT_Long CheckSum_Adjust;
     FT_Long Magic_Number;
     FT_UShort Flags;
     FT_UShort Units_Per_EM;
     FT_ULong Created[2];
     FT_ULong Modified[2];
     FT_Short xMin;
     FT_Short yMin;
     FT_Short xMax;
     FT_Short yMax;
     FT_UShort Mac_Style;
     FT_UShort Lowest_Rec_PPEM;
     FT_Short Font_Direction;
     FT_Short Index_To_Loc_Format;
     FT_Short Glyph_Data_Format;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TABLE_VERSION
      The struct member offsets.
    • FONT_REVISION

      public static final int FONT_REVISION
      The struct member offsets.
    • CHECKSUM_ADJUST

      public static final int CHECKSUM_ADJUST
      The struct member offsets.
    • MAGIC_NUMBER

      public static final int MAGIC_NUMBER
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • UNITS_PER_EM

      public static final int UNITS_PER_EM
      The struct member offsets.
    • CREATED

      public static final int CREATED
      The struct member offsets.
    • MODIFIED

      public static final int MODIFIED
      The struct member offsets.
    • XMIN

      public static final int XMIN
      The struct member offsets.
    • YMIN

      public static final int YMIN
      The struct member offsets.
    • XMAX

      public static final int XMAX
      The struct member offsets.
    • YMAX

      public static final int YMAX
      The struct member offsets.
    • MAC_STYLE

      public static final int MAC_STYLE
      The struct member offsets.
    • LOWEST_REC_PPEM

      public static final int LOWEST_REC_PPEM
      The struct member offsets.
    • FONT_DIRECTION

      public static final int FONT_DIRECTION
      The struct member offsets.
    • INDEX_TO_LOC_FORMAT

      public static final int INDEX_TO_LOC_FORMAT
      The struct member offsets.
    • GLYPH_DATA_FORMAT

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

    • TT_Header

      public TT_Header(ByteBuffer container)
      Creates a TT_Header 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_Header>
    • Table_Version

      public long Table_Version()
      Returns:
      the value of the Table_Version field.
    • Font_Revision

      public long Font_Revision()
      Returns:
      the value of the Font_Revision field.
    • CheckSum_Adjust

      public long CheckSum_Adjust()
      Returns:
      the value of the CheckSum_Adjust field.
    • Magic_Number

      public long Magic_Number()
      Returns:
      the value of the Magic_Number field.
    • Flags

      public short Flags()
      Returns:
      the value of the Flags field.
    • Units_Per_EM

      public short Units_Per_EM()
      Returns:
      the value of the Units_Per_EM field.
    • Created

      public CLongBuffer Created()
      Returns:
      a CLongBuffer view of the Created field.
    • Created

      public long Created(int index)
      Returns:
      the value at the specified index of the Created field.
    • Modified

      public CLongBuffer Modified()
      Returns:
      a CLongBuffer view of the Modified field.
    • Modified

      public long Modified(int index)
      Returns:
      the value at the specified index of the Modified field.
    • xMin

      public short xMin()
      Returns:
      the value of the xMin field.
    • yMin

      public short yMin()
      Returns:
      the value of the yMin field.
    • xMax

      public short xMax()
      Returns:
      the value of the xMax field.
    • yMax

      public short yMax()
      Returns:
      the value of the yMax field.
    • Mac_Style

      public short Mac_Style()
      Returns:
      the value of the Mac_Style field.
    • Lowest_Rec_PPEM

      public short Lowest_Rec_PPEM()
      Returns:
      the value of the Lowest_Rec_PPEM field.
    • Font_Direction

      public short Font_Direction()
      Returns:
      the value of the Font_Direction field.
    • Index_To_Loc_Format

      public short Index_To_Loc_Format()
      Returns:
      the value of the Index_To_Loc_Format field.
    • Glyph_Data_Format

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

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

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

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

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

      public static long nTable_Version(long struct)
      Unsafe version of Table_Version().
    • nFont_Revision

      public static long nFont_Revision(long struct)
      Unsafe version of Font_Revision().
    • nCheckSum_Adjust

      public static long nCheckSum_Adjust(long struct)
      Unsafe version of CheckSum_Adjust().
    • nMagic_Number

      public static long nMagic_Number(long struct)
      Unsafe version of Magic_Number().
    • nFlags

      public static short nFlags(long struct)
      Unsafe version of Flags().
    • nUnits_Per_EM

      public static short nUnits_Per_EM(long struct)
      Unsafe version of Units_Per_EM().
    • nCreated

      public static CLongBuffer nCreated(long struct)
      Unsafe version of Created().
    • nCreated

      public static long nCreated(long struct, int index)
      Unsafe version of Created.
    • nModified

      public static CLongBuffer nModified(long struct)
      Unsafe version of Modified().
    • nModified

      public static long nModified(long struct, int index)
      Unsafe version of Modified.
    • nxMin

      public static short nxMin(long struct)
      Unsafe version of xMin().
    • nyMin

      public static short nyMin(long struct)
      Unsafe version of yMin().
    • nxMax

      public static short nxMax(long struct)
      Unsafe version of xMax().
    • nyMax

      public static short nyMax(long struct)
      Unsafe version of yMax().
    • nMac_Style

      public static short nMac_Style(long struct)
      Unsafe version of Mac_Style().
    • nLowest_Rec_PPEM

      public static short nLowest_Rec_PPEM(long struct)
      Unsafe version of Lowest_Rec_PPEM().
    • nFont_Direction

      public static short nFont_Direction(long struct)
      Unsafe version of Font_Direction().
    • nIndex_To_Loc_Format

      public static short nIndex_To_Loc_Format(long struct)
      Unsafe version of Index_To_Loc_Format().
    • nGlyph_Data_Format

      public static short nGlyph_Data_Format(long struct)
      Unsafe version of Glyph_Data_Format().