How to paint unicode surrogate pairs using QPainter?
General and Desktop
2
Posts
1
Posters
1.5k
Views
1
Watching
-
If a unicode character with code values above 65535, it will be stored using surrogate pairs, I store it in an QString object, and draw it with QPainter, but nothing will appear, is this a bug? or QPainter's drawText just doesn't support characters above 65535?
I have set a correct font, the same font in other text editors / word processers can display this character.
Here is a unicode character for test: "http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=22489":http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=22489