开发者

TextOut() and the Cambria Math font

开发者 https://www.devze.com 2023-03-01 07:54 出处:网络
The Cambria Math font has UNICODE characters beyond 0xFFFF. You can see them in a Word document, just by inserting a Symbol and selecting the Cambria Math font. By the way, the Windows Character Map d

The Cambria Math font has UNICODE characters beyond 0xFFFF. You can see them in a Word document, just by inserting a Symbol and selecting the Cambria Math font. By the way, the Windows Character Map does not show these characters. My question is : how to exhibit those U开发者_StackOverflow社区NICODE characters in a Windows app using TextOut() ?


To display these supplementary code points you need to use UTF-16 surrogate pairs.

A surrogate pair is a way of representing single code points beyond 0xFFFF as two wide characters. You simply pass a surrogate pair to TextOut() and it will be displayed.

0

精彩评论

暂无评论...
验证码 换一张
取 消