Class FontExtents

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.FontExtents
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class FontExtents extends ProxyInstance

Font-wide extent values, measured in scaled units.

Note that typically ascender is positive and descender negative, in coordinate systems that grow up.

  • Constructor Details

    • FontExtents

      public FontExtents(MemorySegment address)
      Create a FontExtents proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • FontExtents

      public FontExtents(Arena arena)
      Allocate a new FontExtents.
      Parameters:
      arena - to control the memory allocation scope
    • FontExtents

      public FontExtents()
      Allocate a new FontExtents. The memory is allocated with Arena.ofAuto().
    • FontExtents

      public FontExtents(Position ascender, Position descender, Position lineGap, Arena arena)
      Allocate a new FontExtents with the fields set to the provided values.
      Parameters:
      ascender - value for the field ascender
      descender - value for the field descender
      lineGap - value for the field lineGap
      arena - to control the memory allocation scope
    • FontExtents

      public FontExtents(Position ascender, Position descender, Position lineGap)
      Allocate a new FontExtents with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      ascender - value for the field ascender
      descender - value for the field descender
      lineGap - value for the field lineGap
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readAscender

      public Position readAscender()
      Read the value of the field ascender.
      Returns:
      The value of the field ascender
    • writeAscender

      public void writeAscender(Position ascender)
      Write a value in the field ascender.
      Parameters:
      ascender - The new value for the field ascender
    • readDescender

      public Position readDescender()
      Read the value of the field descender.
      Returns:
      The value of the field descender
    • writeDescender

      public void writeDescender(Position descender)
      Write a value in the field descender.
      Parameters:
      descender - The new value for the field descender
    • readLineGap

      public Position readLineGap()
      Read the value of the field line_gap.
      Returns:
      The value of the field line_gap
    • writeLineGap

      public void writeLineGap(Position lineGap)
      Write a value in the field line_gap.
      Parameters:
      lineGap - The new value for the field line_gap