Hi, New Pagodi, thanks for the reply.
I just test the wxWidgets' font sample code.
It looks like when I choose the font size = 10 or font size = 12, the alignment is correct, while if I select the font size = 11, the alignment is wrong.
I just checked this issue under Notepad++, it works correctly in all the three font sizes.
So, my guess is that this issue if from the wxWidgets' font handling, not from the stc source.
See the screen shot below:
EDIT:
Compared with Notepad++, it looks like that in wx font sample, when the mis-alignment happens, the Chinese characters width is correct, and the English character has one extra space in the horizontal direction. So, the English text line is a bit longer than the Chinese text line.