Class TT_VertHeader.Buffer

All Implemented Interfaces:
Iterable<TT_VertHeader>, Pointer
Enclosing class:
TT_VertHeader

public static class TT_VertHeader.Buffer extends StructBuffer<TT_VertHeader, TT_VertHeader.Buffer>
An array of TT_VertHeader structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new TT_VertHeader.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by TT_VertHeader.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • Version

      @NativeType("FT_Fixed") public long Version()
      Returns:
      the value of the Version field.
    • Ascender

      @NativeType("FT_Short") public short Ascender()
      Returns:
      the value of the Ascender field.
    • Descender

      @NativeType("FT_Short") public short Descender()
      Returns:
      the value of the Descender field.
    • Line_Gap

      @NativeType("FT_Short") public short Line_Gap()
      Returns:
      the value of the Line_Gap field.
    • advance_Height_Max

      @NativeType("FT_UShort") public short advance_Height_Max()
      Returns:
      the value of the advance_Height_Max field.
    • min_Top_Side_Bearing

      @NativeType("FT_Short") public short min_Top_Side_Bearing()
      Returns:
      the value of the min_Top_Side_Bearing field.
    • min_Bottom_Side_Bearing

      @NativeType("FT_Short") public short min_Bottom_Side_Bearing()
      Returns:
      the value of the min_Bottom_Side_Bearing field.
    • yMax_Extent

      @NativeType("FT_Short") public short yMax_Extent()
      Returns:
      the value of the yMax_Extent field.
    • caret_Slope_Rise

      @NativeType("FT_Short") public short caret_Slope_Rise()
      Returns:
      the value of the caret_Slope_Rise field.
    • caret_Slope_Run

      @NativeType("FT_Short") public short caret_Slope_Run()
      Returns:
      the value of the caret_Slope_Run field.
    • caret_Offset

      @NativeType("FT_Short") public short caret_Offset()
      Returns:
      the value of the caret_Offset field.
    • Reserved

      @NativeType("FT_Short[4]") public ShortBuffer Reserved()
      Returns:
      a ShortBuffer view of the Reserved field.
    • Reserved

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

      @NativeType("FT_Short") public short metric_Data_Format()
      Returns:
      the value of the metric_Data_Format field.
    • number_Of_VMetrics

      @NativeType("FT_UShort") public short number_Of_VMetrics()
      Returns:
      the value of the number_Of_VMetrics field.
    • long_metrics

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

      @NativeType("void *") public @Nullable ByteBuffer short_metrics(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the short_metrics field.