Class hb_font_extents_t.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<hb_font_extents_t>, NativeResource, Pointer
Enclosing class:
hb_font_extents_t

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new hb_font_extents_t.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 hb_font_extents_t.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

    • ascender

      public int ascender()
      Returns:
      the value of the ascender field.
    • descender

      public int descender()
      Returns:
      the value of the descender field.
    • line_gap

      public int line_gap()
      Returns:
      the value of the line_gap field.
    • ascender

      public hb_font_extents_t.Buffer ascender(int value)
      Sets the specified value to the ascender field.
    • descender

      public hb_font_extents_t.Buffer descender(int value)
      Sets the specified value to the descender field.
    • line_gap

      public hb_font_extents_t.Buffer line_gap(int value)
      Sets the specified value to the line_gap field.