如何使用.TTF字体.NET说&QUOT说,是不是TrueType字体"在.NET程序? [英] How to use a .TTF font that .NET says "Is not a truetype font" in a .NET program?

查看:342
本文介绍了如何使用.TTF字体.NET说&QUOT说,是不是TrueType字体"在.NET程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已下载的字体,[贝特西那根] [1],我想在我的计划,显示屏幕上的键盘快捷键和它们的含义在不同的程序中使用。

I have downloaded a font, [Betsy Flanagan][1], that I'd like to use in my program that shows on-screen keyboard shortcuts and their meaning in various programs.

然而,对于一个标签选择在Visual Studio 2010中的字体时,我得到一个错误信息,说只有TrueType字体的支持。这不是一个TrueType字体。

However, when selecting the font in Visual Studio 2010 for a label, I get an error message that says "Only TrueType fonts are supported. This is not a TrueType font."

有没有办法对我来说,这个字体在.NET程序显示文本?由于这是一个专门的敬酒状,与需要有这种特殊字体只是一个标签,我真的不关心,如果它是一个黑客做到这一点(如P / Invoke的或相似的。)

Is there any way for me to display text with this font in a .NET program? Since this is a specialized toast-like form, with just one label that needs to have this particular font, I don't really care if it is a hack to do it (like P/Invoke or similar.)

注意:这是一个.NET 4.0 WinForms应用程序

Note: This is a .NET 4.0 Winforms application.

推荐答案

如果这是你试图使用的字体,那么也许您的本地实例已损坏?

If this is the font you're trying to use, then maybe your local instance is corrupt?

VS2010中表现良好时,我试图设置标签和其他的WinForms控制,以贝齐。下载一个我联系,看看是否可行。我的观点是,如果你已经安装了一个有效的TTF,VS是不会采取例外。

VS2010 was well behaved when I tried to set labels and other winforms controls to Betsy. Download the one I linked and see if that works. My take is that if you've got a valid TTF installed, VS isn't going to take exception.

这篇关于如何使用.TTF字体.NET说&QUOT说,是不是TrueType字体"在.NET程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆