kernAdvance

abstract fun kernAdvance(left: Char, right: Char): Double(source)

Calculates the horizontal kerning adjustment between two characters.

The kerning adjustment is the additional or reduced horizontal spacing that should be applied when rendering the two characters next to each other to improve the visual balance and appearance of the text.

Return

the horizontal kerning adjustment in font units. A positive value increases spacing, while a negative value decreases spacing.

Parameters

left

the first character in the pair.

right

the second character in the pair.