Windows窗体应用程序的默认字体 [英] Default font for Windows Forms application

查看:227
本文介绍了Windows窗体应用程序的默认字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我在应用程序中创建一个新窗体时,默认使用Microsoft Sans Serif,8.25pt字体。我没有改变它,因为我知道在这种情况下,我的表单应该选择系统的默认字体。但是,当我运行我的应用程序时,所使用的字体仍然是Segoe UI(我的Windows Vista操作系统中的默认系统字体)。



为什么会发生这种情况?如何确保我的应用程序看起来像一个正常的Windows应用程序?

解决方案

看看这个博客条目讨论表单中的默认字体,这会导致您遇到的问题,这个 Connect Bug 与微软的回应。简而言之,Forms似乎没有得到正确的默认窗口字体(你已经改变了)。

Every time that I create a new form in my application, it uses the "Microsoft Sans Serif, 8.25pt" font by default. I'm not changing it because I know that in this case my form should pick up whatever the default font is for the system. However, when I run my application, the font that is used is still anything but Segoe UI (my default system font in my Windows Vista OS).

Why does this happen? How do I make sure that my application looks like a normal Windows application?

解决方案

Check out this blog entry talking about the default font in Forms which leads to the problem you are experiencing and this Connect Bug with Microsoft's response. In short it just seems that Forms does not get the (correct) default windows font (which you have changed).

这篇关于Windows窗体应用程序的默认字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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