Package org.freedesktop.harfbuzz
Class OtMathKernEntry
java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.harfbuzz.OtMathKernEntry
- All Implemented Interfaces:
Proxy
Data type to hold math kerning (cut-in) information for a glyph.
- Since:
- 3.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new OtMathKernEntry.OtMathKernEntry(Arena arena) Allocate a new OtMathKernEntry.OtMathKernEntry(MemorySegment address) Create a OtMathKernEntry proxy instance for the provided memory address.OtMathKernEntry(Position maxCorrectionHeight, Position kernValue) Allocate a new OtMathKernEntry with the fields set to the provided values.OtMathKernEntry(Position maxCorrectionHeight, Position kernValue, Arena arena) Allocate a new OtMathKernEntry with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.Read the value of the fieldkern_value.Read the value of the fieldmax_correction_height.voidwriteKernValue(Position kernValue) Write a value in the fieldkern_value.voidwriteMaxCorrectionHeight(Position maxCorrectionHeight) Write a value in the fieldmax_correction_height.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
OtMathKernEntry
Create a OtMathKernEntry proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
OtMathKernEntry
Allocate a new OtMathKernEntry.- Parameters:
arena- to control the memory allocation scope
-
OtMathKernEntry
public OtMathKernEntry()Allocate a new OtMathKernEntry. The memory is allocated withArena.ofAuto(). -
OtMathKernEntry
Allocate a new OtMathKernEntry with the fields set to the provided values.- Parameters:
maxCorrectionHeight- value for the fieldmaxCorrectionHeightkernValue- value for the fieldkernValuearena- to control the memory allocation scope
-
OtMathKernEntry
Allocate a new OtMathKernEntry with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
maxCorrectionHeight- value for the fieldmaxCorrectionHeightkernValue- value for the fieldkernValue
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readMaxCorrectionHeight
Read the value of the fieldmax_correction_height.- Returns:
- The value of the field
max_correction_height
-
writeMaxCorrectionHeight
Write a value in the fieldmax_correction_height.- Parameters:
maxCorrectionHeight- The new value for the fieldmax_correction_height
-
readKernValue
Read the value of the fieldkern_value.- Returns:
- The value of the field
kern_value
-
writeKernValue
Write a value in the fieldkern_value.- Parameters:
kernValue- The new value for the fieldkern_value
-