"include/svn:/svn.code.sf.net/p/irrlicht/code/trunk@2065" did not exist on "ee5942f4c10dd860c4bfeac42c8efabd92193df5"
Commit 40a8a7a2 authored by cutealien's avatar cutealien

Bugfix (found by arras): CGUIFont::getCharacterFromPos no longer ignores kerning.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2482 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ca5258cd
......@@ -633,7 +633,7 @@ s32 CGUIFont::getCharacterFromPos(const wchar_t* text, s32 pixel_x) const
{
const SFontArea& a = Areas[getAreaFromCharacter(text[idx])];
x += a.width + a.overhang + a.underhang;
x += a.width + a.overhang + a.underhang + GlobalKerningWidth;
if (x >= pixel_x)
return idx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment