Why does subscript 2 not appear on Windows XP?

不羁岁月 提交于 2019-12-12 01:27:11

问题


I am trying to display CO2 in a static text control on a .NET application, but on some Windows XP system, the subscript-2 (unicode 2082) appears as a square). I suspect that it may be a font issue as it appears on some Windows XP systems but not on all. It always displays on Windows 7 and Vista. It's available on MS Gothic font. Ideas very welcome.


回答1:


MS Sans Serif doesn't contain Unicode character U+2082, therefore the glyph will only be rendered as a square. To solve the problem you need to use a character where U+2082 is available.

You can check all available characters with Window's charmap.exe utility. MS UI Gothic for instance contains this character, as well as Segoe UI or Arial Unicode MS.



来源:https://stackoverflow.com/questions/3081137/why-does-subscript-2-not-appear-on-windows-xp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!