Rasterizer:getKerning

Edit

Returns the kerning between 2 glyphs, in pixels. Kerning is a slight horizontal adjustment between 2 glyphs to improve the visual appearance. It will often be negative.

keming = Rasterizer:getKerning(first, second)

Arguments

NameTypeDescription
firststring | number The character or codepoint representing the first glyph.
secondstring | number The character or codepoint representing the second glyph.

Returns

NameTypeDescription
kemingnumber The kerning between the two glyphs.

See also