Font bug with the "i" letter on android

Just noticed something odd:

the text "fi" (in lowercase only) isn't rendered correctly using drawText on android, the "i" is shifted to the right:

g.setFont (Font (16.0f));
g.setColour (Colours::black);
g.drawText ("fi fi fi", getLocalBounds(), Justification::centred, true);

Will produce the output "f if if i" instead of "fi fi fi".

 

 

Trying it in the juce demo fonts page, it looks like an error in the droid sans font kerning table - other fonts are ok. Doesn't look like a bug in the juce renderer to me.

Indeed, seems to be introduced since Android 4.2:

 

http://stackoverflow.com/questions/13974129/android-4-2-1-wrong-character-kerning-spacing

 

 

does anyone have a workaround for this. not being able to type something like "fish" in a dialog box is not very good.