开发者

GetGlyphOutline() and UTF-16 surrogate pairs

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜