shini
January 23, 2014, 11:35am
1
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".
jules
January 23, 2014, 11:45am
2
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.
shini
January 23, 2014, 12:03pm
3
Indeed, seems to be introduced since Android 4.2:
http://stackoverflow.com/questions/13974129/android-4-2-1-wrong-character-kerning-spacing
hugh
February 19, 2014, 5:15pm
4
does anyone have a workaround for this. not being able to type something like "fish" in a dialog box is not very good.