Hi Hiroshi,
your locale problem seems to be fixed, let's get back to that nasty font
stuff.
Your debug log showed that a 'M' is calculated to have the same width as
'g', using the font 'Sans 10'. This looks irregular, could you debug
what's going on when calling GetTextExtent (frmMain.cpp line 110)? Maybe
this is a Pango issue? What's happening if you're using a different font?
Regards,
Andreas