Class OtMathKernEntry

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

@Generated("org.javagi.JavaGI") public class OtMathKernEntry extends ProxyInstance
Data type to hold math kerning (cut-in) information for a glyph.
Since:
3.4.0
  • Constructor Details

    • OtMathKernEntry

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

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

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

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

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

    • getMemoryLayout

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

      public Position readMaxCorrectionHeight()
      Read the value of the field max_correction_height.
      Returns:
      The value of the field max_correction_height
    • writeMaxCorrectionHeight

      public void writeMaxCorrectionHeight(Position maxCorrectionHeight)
      Write a value in the field max_correction_height.
      Parameters:
      maxCorrectionHeight - The new value for the field max_correction_height
    • readKernValue

      public Position readKernValue()
      Read the value of the field kern_value.
      Returns:
      The value of the field kern_value
    • writeKernValue

      public void writeKernValue(Position kernValue)
      Write a value in the field kern_value.
      Parameters:
      kernValue - The new value for the field kern_value