Class TT_HoriHeader

All Implemented Interfaces:
Pointer

public class TT_HoriHeader extends Struct<TT_HoriHeader>

 struct TT_HoriHeader {
     FT_Fixed Version;
     FT_Short Ascender;
     FT_Short Descender;
     FT_Short Line_Gap;
     FT_UShort advance_Width_Max;
     FT_Short min_Left_Side_Bearing;
     FT_Short min_Right_Side_Bearing;
     FT_Short xMax_Extent;
     FT_Short caret_Slope_Rise;
     FT_Short caret_Slope_Run;
     FT_Short caret_Offset;
     FT_Short Reserved[4];
     FT_Short metric_Data_Format;
     FT_UShort number_Of_HMetrics;
     void * long_metrics;
     void * short_metrics;
 }
  • 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.
    • ASCENDER

      public static final int ASCENDER
      The struct member offsets.
    • DESCENDER

      public static final int DESCENDER
      The struct member offsets.
    • LINE_GAP

      public static final int LINE_GAP
      The struct member offsets.
    • ADVANCE_WIDTH_MAX

      public static final int ADVANCE_WIDTH_MAX
      The struct member offsets.
    • MIN_LEFT_SIDE_BEARING

      public static final int MIN_LEFT_SIDE_BEARING
      The struct member offsets.
    • MIN_RIGHT_SIDE_BEARING

      public static final int MIN_RIGHT_SIDE_BEARING
      The struct member offsets.
    • XMAX_EXTENT

      public static final int XMAX_EXTENT
      The struct member offsets.
    • CARET_SLOPE_RISE

      public static final int CARET_SLOPE_RISE
      The struct member offsets.
    • CARET_SLOPE_RUN

      public static final int CARET_SLOPE_RUN
      The struct member offsets.
    • CARET_OFFSET

      public static final int CARET_OFFSET
      The struct member offsets.
    • RESERVED

      public static final int RESERVED
      The struct member offsets.
    • METRIC_DATA_FORMAT

      public static final int METRIC_DATA_FORMAT
      The struct member offsets.
    • NUMBER_OF_HMETRICS

      public static final int NUMBER_OF_HMETRICS
      The struct member offsets.
    • LONG_METRICS

      public static final int LONG_METRICS
      The struct member offsets.
    • SHORT_METRICS

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

    • TT_HoriHeader

      public TT_HoriHeader(ByteBuffer container)
      Creates a TT_HoriHeader 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_HoriHeader>
    • Version

      public long Version()
      Returns:
      the value of the Version field.
    • Ascender

      public short Ascender()
      Returns:
      the value of the Ascender field.
    • Descender

      public short Descender()
      Returns:
      the value of the Descender field.
    • Line_Gap

      public short Line_Gap()
      Returns:
      the value of the Line_Gap field.
    • advance_Width_Max

      public short advance_Width_Max()
      Returns:
      the value of the advance_Width_Max field.
    • min_Left_Side_Bearing

      public short min_Left_Side_Bearing()
      Returns:
      the value of the min_Left_Side_Bearing field.
    • min_Right_Side_Bearing

      public short min_Right_Side_Bearing()
      Returns:
      the value of the min_Right_Side_Bearing field.
    • xMax_Extent

      public short xMax_Extent()
      Returns:
      the value of the xMax_Extent field.
    • caret_Slope_Rise

      public short caret_Slope_Rise()
      Returns:
      the value of the caret_Slope_Rise field.
    • caret_Slope_Run

      public short caret_Slope_Run()
      Returns:
      the value of the caret_Slope_Run field.
    • caret_Offset

      public short caret_Offset()
      Returns:
      the value of the caret_Offset field.
    • Reserved

      public ShortBuffer Reserved()
      Returns:
      a ShortBuffer view of the Reserved field.
    • Reserved

      public short Reserved(int index)
      Returns:
      the value at the specified index of the Reserved field.
    • metric_Data_Format

      public short metric_Data_Format()
      Returns:
      the value of the metric_Data_Format field.
    • number_Of_HMetrics

      public short number_Of_HMetrics()
      Returns:
      the value of the number_Of_HMetrics field.
    • long_metrics

      public @Nullable ByteBuffer long_metrics(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the long_metrics field.
    • short_metrics

      public @Nullable ByteBuffer short_metrics(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the short_metrics field.
    • create

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

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

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

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

      public static long nVersion(long struct)
      Unsafe version of Version().
    • nAscender

      public static short nAscender(long struct)
      Unsafe version of Ascender().
    • nDescender

      public static short nDescender(long struct)
      Unsafe version of Descender().
    • nLine_Gap

      public static short nLine_Gap(long struct)
      Unsafe version of Line_Gap().
    • nadvance_Width_Max

      public static short nadvance_Width_Max(long struct)
      Unsafe version of advance_Width_Max().
    • nmin_Left_Side_Bearing

      public static short nmin_Left_Side_Bearing(long struct)
      Unsafe version of min_Left_Side_Bearing().
    • nmin_Right_Side_Bearing

      public static short nmin_Right_Side_Bearing(long struct)
      Unsafe version of min_Right_Side_Bearing().
    • nxMax_Extent

      public static short nxMax_Extent(long struct)
      Unsafe version of xMax_Extent().
    • ncaret_Slope_Rise

      public static short ncaret_Slope_Rise(long struct)
      Unsafe version of caret_Slope_Rise().
    • ncaret_Slope_Run

      public static short ncaret_Slope_Run(long struct)
      Unsafe version of caret_Slope_Run().
    • ncaret_Offset

      public static short ncaret_Offset(long struct)
      Unsafe version of caret_Offset().
    • nReserved

      public static ShortBuffer nReserved(long struct)
      Unsafe version of Reserved().
    • nReserved

      public static short nReserved(long struct, int index)
      Unsafe version of Reserved.
    • nmetric_Data_Format

      public static short nmetric_Data_Format(long struct)
      Unsafe version of metric_Data_Format().
    • nnumber_Of_HMetrics

      public static short nnumber_Of_HMetrics(long struct)
      Unsafe version of number_Of_HMetrics().
    • nlong_metrics

      public static @Nullable ByteBuffer nlong_metrics(long struct, int capacity)
      Unsafe version of long_metrics.
    • nshort_metrics

      public static @Nullable ByteBuffer nshort_metrics(long struct, int capacity)
      Unsafe version of short_metrics.