在 Server 2003 下的 Visual Studio 2008 中使用自定义字体的问题

发布于 2024-07-10 00:51:39 字数 595 浏览 5 评论 0原文

我对我公司创建的自定义字体有疑问。 当我将 Visual Studio 2008 中控件的 Font 属性设置为我们的字体时,我收到以下错误:

仅支持 TrueType 字体。 这不是 TrueType 字体。

字体选择对话框显示我们的字体,双击 Windows 字体文件夹中的字体可以正确显示预览。

我与与我合作的其他开发人员做了一些测试。 显然这个问题只有在Server 2003下运行VS2008时才会出现,但设计时字体在Vista和XP下工作正常。 其他系统字体(例如 Arial 和 Courier New)工作正常,只是不是我们内部的自定义字体。

有谁知道为什么 Server 2003 的 TrueType 字体会出现问题?

更新:

我正在研究机器之间的其他差异。 相关电脑未安装 Microsoft Office。 安装 Office 后,相关字体可以在 Visual Studio 中使用,无需任何其他修改。

作为原始问题的附录,为什么安装 Microsoft Office 会导致字体开始工作?

I am having an issue with a custom font that my company has created. When I set the Font property of a control in Visual Studio 2008 to our font, I receive the following error:

Only TrueType fonts are supported.
This is not a TrueType font.

The font selection dialog shows our font, and double-clicking the font in the Windows font folder correctly shows a preview.

I have done a little testing with the other developers that I work with. Apparently this issue only pops up when running VS2008 under Server 2003, but the design time font works fine under Vista and XP. Other system fonts such as Arial and Courier New work fine, just not our in-house custom font.

Does anyone know why Server 2003 would have an issue with a font that is supposedly TrueType?

Update:

I was looking into additional differences between the machines. The PC in question did not have Microsoft Office installed. After installing Office, the font in question worked in Visual Studio without any other modification.

As an addendum to the original question, why would the installation of Microsoft Office cause a font to start working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

愛放△進行李 2024-07-17 00:51:39

您确实需要更多地了解您的自定义字体。 听起来它可能是一种 OpenType 字体,Server 2003 不知道如何处理,而 XP 和 Vista 知道如何处理。 Windows 上的 OpenType 字体通常具有扩展名 .ttf,因此您乍一看可能会将其误认为是 TrueType 字体,但 Windows 字体查看器应将其显示为绿色和黑色的“O”徽标,至少在 XP 和 Vista 上是这样。 如果您想真正了解字体中的内容,请使用字体编辑器; 例如 FontForge,它很棒而且免费 (http://fontforge.sourceforge.net/),或 FontLab Studio 的演示版本 (http://www.fontlab.ch/)。

至于为什么安装Office解决了这个问题,我的猜测是它添加了一些处理OpenType字体的DLL,但同样,如果不了解更多关于字体的信息,真的很难说清楚。

You really need to tell more about your custom font. It sounds like it could be an OpenType font that Server 2003 wouldn't know how to handle, while XP and Vista do. OpenType fonts on Windows usually have the extension .ttf, so you could mistake it for a TrueType font at first glance, but Windows font viewer should display it with the green and black 'O' logo, at least on XP and Vista. If you want to really know what's in the font, use a font editor; for example FontForge which is great and free (http://fontforge.sourceforge.net/), or FontLab Studio's demo version (http://www.fontlab.ch/).

As for why installing Office solved the problem, my guess would be that it added some DLL that deals with OpenType fonts, but again, it's really difficult to tell without knowing more about the font.

紫竹語嫣☆ 2024-07-17 00:51:39

我有一个类似但不同的问题。
在现场,我们将使用 XP,但没有 MS Office,并且可能没有安装“东亚”字体包(单独的搜索没有告诉我该选项中的确切内容)。 我们的目标是能够显示亚洲字符,所以我一直在寻找解决方案。
我想我应该尝试一种免费的 Unicode 字体,例如 http://en.wikipedia.org/wiki/ GNU_Unifont

所以我被引导到这里是因为我正在使用 VS2008 创建一个 Windows 窗体应用程序(使用我的 XP 开发框以及 Office)。
它是一个 TTF 扩展,在字体文件夹中显示良好,并且在写字板中工作。

在 VS 设计器中,我为 TextBox 控件选择 Unifont,但 VS 给出了有关它不是 TrueType 的错误消息。
那么什么时候 TrueType 字体不是 TrueType 呢?

I have a similar but different problem.
In the field we will have XP but no MS Office and probably no "East Asian" font pack installed (a separate search didn't tell me exactly what is in that option). Our goal is to be able to display Asian characters, so I was looking for a solution.
I thought I would try a free Unicode font, such as http://en.wikipedia.org/wiki/GNU_Unifont

So I was lead here because I was creating a Windows Form app using VS2008 (using my Dev box that XP, as well as Office).
It is a TTF extension and in the font folder appears fine, as well as working in WordPad.

In the VS Designer, I select the Unifont for my TextBox control but VS gives that error message about it not being TrueType.
So when is a TrueType font not TrueType?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文