When I try to draw a string in win32 program, there are some APIs like TextOut or DrawText and so on. If I want to draw a string of unicode which using wchar_t string, I should define the UNICODE marco. It works well untill some special charactors come out.
According the Unicode charset table, some special charactors don't draw well in those APIs.
For example, there are some kind of shape charactors like a heart shape character ❤ , coding value \u2764 , a telphone shape character ☎, coding value \u260E and so on.
When I try to draw these characters with win32 APIs , the result is not what I expected.
What I have tried:
Here is some codes I've tried.
wchar_t msg[5]={0};
wchar_t a=0x2764;
TextOutW(hdc, 50, 20, msg,1);
Anyone ever tried this?