标签上的字体像素化 [英] Fonts pixilate on a label

查看:107
本文介绍了标签上的字体像素化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这与C#代码无关,但与Label控件上显示的字体有关.
我正在使用"Segoe UI"字体,并在Label控件上显示一行简单的文本.
发生的情况是,当我将字体大小增加到36px或以上时,文本在标签"上显示为像素化.有什么解决办法可以避免这种情况? Windows如何在具有相同字体的Metro Style应用程序中实现此目的?

在此先谢谢您.

Hi everyone,

This is not regarding a C# code, but the font displayed on a Label control.
I''m using "Segoe UI" font and displaying a simple line of text on a Label control.
What happens is, when I increase the font size to 36px or above, the text appears pixilated on the Label. Is there any solution to avoid this? How does Windows achieve this on a Metro Style app with the same font?

Thanks in advance.

推荐答案

您可以尝试实现painteventhandler,并且可以在此处使用以下示例对字体进行抗锯齿处理:
http://msdn.microsoft.com/en-us/library/a619zh6z.aspx [ ^ ]
You could try to implement the painteventhandler and there you are able to antialias your font using this sample here:
http://msdn.microsoft.com/en-us/library/a619zh6z.aspx[^]


这篇关于标签上的字体像素化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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