为什么标2不会出现在Windows XP上?出现在、Windows、XP

2023-09-06 23:52:42 作者:︶喜欢上寂寞

我想在一个.NET应用程序的静态文本控件中显示的二氧化碳,但在某些Windows XP系统,下标-2(UNI code 2082)显示为一个正方形)。我怀疑,因为它出现在某些Windows XP系统,但不是在所有可能的字体问题。它始终显示在Windows 7和Vista。它适用于MS哥特字体。理念非常欢迎。

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.

推荐答案

宋体的不包含统一code字符U + 2082,因此字形将只呈现为广场。为了解决这个问题,你需要使用的字符,其中U + 2082是可用的。

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.

您可以检查窗口的CHARMAP.EXE程序中的所有可用的字符。 MS UI哥特的例如含有这种性格,还有的的Segoe UI 或宋体统一code MS 的。

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.