Rasterizer:getKerning

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 The first character.
secondstring The second character.

Returns

NameTypeDescription
kemingnumber The kerning between the two glyphs.

keming = Rasterizer:getKerning(firstCodepoint, second)

Arguments

NameTypeDescription
firstCodepointnumber The first codepoint.
secondstring The second character.

Returns

NameTypeDescription
kemingnumber The kerning between the two glyphs.

keming = Rasterizer:getKerning(first, secondCodepoint)

Arguments

NameTypeDescription
firststring The first character.
secondCodepointnumber The second codepoint.

Returns

NameTypeDescription
kemingnumber The kerning between the two glyphs.

keming = Rasterizer:getKerning(firstCodepoint, secondCodepoint)

Arguments

NameTypeDescription
firstCodepointnumber The first codepoint.
secondCodepointnumber The second codepoint.

Returns

NameTypeDescription
kemingnumber The kerning between the two glyphs.

See also