为什么不安装的字体显示在字体选择对话框?字体、对话框

2023-09-06 10:04:23 作者:2b年代一朵骄傲的花

我已经在我的开发机期待再能选择字体窗体上的标签安装OpenType字体。

I've installed an OpenType font on my development machine expecting to then be able to choose that font for a label on a form.

字体在MS Word中可用,因此我有理由相信这是安装好了,但我看不到在字体选择对话框中的字体在Visual Studio中的标签。我也查了字体设置在工具>选项,它不存在任何。运行从code this回答不会列出字体。我试着重新启动VS.Net。

The font is available in MS Word so I'm reasonably confident it was installed ok, but I can't see the font in the font-picker dialog for the label in Visual Studio. I also checked the font settings in Tools > Options and it isn't there either. Running the code from this answer doesn't list the font. I've tried restarting VS.Net.

还有什么我可以做,使这个字体显示在Visual Studio中?

What else can I do to make this font show up in Visual Studio?

推荐答案

GDI +不支持OpenType字体,只有TrueType字体。

GDI+ doesn't support OpenType, only TrueType.