Class TT_VertHeader

All Implemented Interfaces:
Pointer

public class TT_VertHeader extends Struct<TT_VertHeader>

 struct TT_VertHeader {
     FT_Fixed Version;
     FT_Short Ascender;
     FT_Short Descender;
     FT_Short Line_Gap;
     FT_UShort advance_Height_Max;
     FT_Short min_Top_Side_Bearing;
     FT_Short min_Bottom_Side_Bearing;
     FT_Short yMax_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_VMetrics;
     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_HEIGHT_MAX

      public static final int ADVANCE_HEIGHT_MAX
      The struct member offsets.
    • MIN_TOP_SIDE_BEARING

      public static final int MIN_TOP_SIDE_BEARING
      The struct member offsets.
    • MIN_BOTTOM_SIDE_BEARING

      public static final int MIN_BOTTOM_SIDE_BEARING
      The struct member offsets.
    • YMAX_EXTENT

      public static final int YMAX_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_VMETRICS

      public static final int NUMBER_OF_VMETRICS
      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_VertHeader

      public TT_VertHeader(ByteBuffer container)
      Creates a TT_VertHeader 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_VertHeader>
    • 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_Height_Max

      public short advance_Height_Max()
      Returns:
      the value of the advance_Height_Max field.
    • min_Top_Side_Bearing

      public short min_Top_Side_Bearing()
      Returns:
      the value of the min_Top_Side_Bearing field.
    • min_Bottom_Side_Bearing

      public short min_Bottom_Side_Bearing()
      Returns:
      the value of the min_Bottom_Side_Bearing field.
    • yMax_Extent

      public short yMax_Extent()
      Returns:
      the value of the yMax_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_VMetrics

      public short number_Of_VMetrics()
      Returns:
      the value of the number_Of_VMetrics 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_VertHeader create(long address)
      Returns a new TT_VertHeader instance for the specified memory address.
    • createSafe

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

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

      public static @Nullable TT_VertHeader.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_Height_Max

      public static short nadvance_Height_Max(long struct)
      Unsafe version of advance_Height_Max().
    • nmin_Top_Side_Bearing

      public static short nmin_Top_Side_Bearing(long struct)
      Unsafe version of min_Top_Side_Bearing().
    • nmin_Bottom_Side_Bearing

      public static short nmin_Bottom_Side_Bearing(long struct)
      Unsafe version of min_Bottom_Side_Bearing().
    • nyMax_Extent

      public static short nyMax_Extent(long struct)
      Unsafe version of yMax_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_VMetrics

      public static short nnumber_Of_VMetrics(long struct)
      Unsafe version of number_Of_VMetrics().
    • 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.