字体“宋体”不支持风格的“常规”不支持、宋体、常规、字体

2023-09-04 08:43:04 作者:走路自带飓风

这其中的任何人听见了吗? System.ArgumentException:字体宋体不支持风格的常规的

Anybody hear of this one? System.ArgumentException: Font 'Times New Roman' does not support style 'Regular'.

我有一个WinForms应用程序,通过的ClickOnce部署。出于某种原因,许多用户收到此错误。我可以看到得到这个错误,因为选择一个非标准的字体,但宋体,正常吗?是否有一个服务包或东西,人们需要什么?

I've got a WinForms app that is deployed via ClickOnce. For some reason a number of users are getting this error. I can see getting this error because of picking a non-standard font, but Times New Roman, Regular? Is there a service pack or something that people need?

我希望从任何人已经想出了一个解决这个问题的来信。

I would love to hear from anybody that has figured out a solution to this problem.

推荐答案

一个解决方案,似乎工作就是将字体移动文件到另一个目录,然后重新安装(如在的 http://www.binaryfortress.com/Forum/index.php?topic=691.0 )

One solution that seems to work is moving the font file to another directory, then reinstalling it (as explained further in http://www.binaryfortress.com/Forum/index.php?topic=691.0)