renderGlyphOnto().x will sometimes return a different value than charWidth(). This means that the
Practical example: the charWidth (using TTF_GlyphMetrics()) for 't' is 6 pixels, while the character width rendered through renderGlyphOnto() (using TTF_RenderUTF8_Blended()) returns 7 pixels in the font TakaoPGothic.ttf, which is the default Japanese font on my Ubuntu install.
renderGlyphOnto().x will sometimes return a different value than charWidth(). This means that the
Practical example: the charWidth (using TTF_GlyphMetrics()) for 't' is 6 pixels, while the character width rendered through renderGlyphOnto() (using TTF_RenderUTF8_Blended()) returns 7 pixels in the font TakaoPGothic.ttf, which is the default Japanese font on my Ubuntu install.