Font.getKerning

Get the kerning offset of two glyphs.

The kerning is an extra offset (negative) to apply between two glyphs when rendering them, to make the pair look more "natural". For example, the pair "AV" have a special kerning to make them closer than other characters. Most of the glyphs pairs have a kerning offset of zero, though.

class Font
const
float
getKerning
(
dchar first
,
dchar second
,)

Parameters

first dchar

Unicode code point of the first character

second dchar

Unicode code point of the second character

characterSize uint

Reference character size

Return Value

Type: float

Kerning value for first and second, in pixels.

Meta