IupGLText can't handle surrogate pairs (
https://en.wikipedia.org/wiki/UTF-16 ) now.

In windows, a unicode above U+10000 (For example U+1F604 😀 ) will be
separated into two WM_CHAR messages. If we got a WM_CHAR with WPARAM
between 0xD800 to 0xDBFF , we should wait for another part of
surrogate pair, and combine them into one unicode code point.

btw, I fix the same issue for imgui . This patch   (
https://github.com/ocornut/imgui/pull/2541/commits/fc2dff0ab602e77628a97edd983f03f6f571487a
) is for your reference.

-- 
http://blog.codingnow.com


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to