Font:getKerning
Available since LÖVE 11.4 |
This function is not supported in earlier versions. |
Gets the kerning between two characters in the Font.
Kerning is normally handled automatically in love.graphics.print, Text objects, Font:getWidth, Font:getWrap, etc. This function is useful when stitching text together manually.
Contents
Function
Synopsis
kerning = Font:getKerning( leftchar, rightchar )
Arguments
Returns
number kerning
- The kerning amount to add to the spacing between the two characters. May be negative.
Function
Synopsis
kerning = Font:getKerning( leftglyph, rightglyph )
Arguments
number leftglyph
- The unicode number for the left glyph.
number rightglyph
- The unicode number for the right glyph.
Returns
number kerning
- The kerning amount to add to the spacing between the two glyphs. May be negative.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info