开发者

GetGlyphOutline() and UTF-16 surrogate pairs

开发者 https://www.devze.com 2023-04-06 19:00 出处:网络
I\'m using the GDI GetGlyphOutlineW function to get the outline of unicode characters, and it works fine except that it does not work with surrogate pairs (U+10000 and higher). I\'ve tried converting

I'm using the GDI GetGlyphOutlineW function to get the outline of unicode characters, and it works fine except that it does not work with surrogate pairs (U+10000 and higher). I've tried converting the surrogate pair into a UTF-32 character, but this does not appear to work.

How can I get glyph outlines of Supplem开发者_运维知识库entary Multilingual Plane characters?


Some Suggestions:

  • Does the particular Unicode code point you are trying to get actually exist in the font that is selected in the DC passed to the GetGlyphOutlineW function?

  • Follow the directions on this page to enable surrogate pairs in Windows.

  • Use the Uniscribe functions for character manipulation.

0

精彩评论

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

关注公众号