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
float
getKerning
const
(
dchar first
,
dchar second
,
)

Parameters

first
Type: dchar

Unicode code point of the first character

second
Type: dchar

Unicode code point of the second character

characterSize
Type: uint

Reference character size

Return Value

Type: float

Kerning value for first and second, in pixels.

Meta