It seems as though center drawing text with JUCE on font which has a kerning factor, the font doesn’t properly center, requiring an additional xOffset to be computed for the font such as
xOffset = font.getExtraKerningFactor() * font.getHeight()
It seems as though center drawing text with JUCE on font which has a kerning factor, the font doesn’t properly center, requiring an additional xOffset to be computed for the font such as
xOffset = font.getExtraKerningFactor() * font.getHeight()
I’ve also had to do something similar when using adding extra kern to fonts. It would be great if Juce took better consideration of kern values when rendering centered text!!