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

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

问题描述

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

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).

为什么会这样?如何确保我的应用程序看起来像一个普通的 Windows 应用程序?

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

推荐答案

查看这个 博客条目 谈论表单中的默认字体,这会导致您遇到的问题和这个 将 Bug 与 Microsoft 的响应联系起来.简而言之,Forms 似乎没有获得(正确的)默认 Windows 字体(您已更改).

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天全站免登陆