ComboBox与Segoe UI和日语文本 [英] ComboBox with Segoe UI and Japanese text

查看:235
本文介绍了ComboBox与Segoe UI和日语文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图让我的C#应用​​程序在Windows Vista或Windows 7中运行时更好看。默认情况下,Windows窗体应用程序使用 Microsoft Sans Serif 字体,

I’m currently trying to make my C# application look better when run within Windows Vista or Windows 7. By default, Windows Forms applications use the Microsoft Sans Serif font, which does not link properly to Asian clear type fonts such as Meiryo.

要修复此问题,我将所有字体设置为 Segoe UI (或 SystemFonts.MessageBoxFont )。这对于大多数控件来说工作得很好,但我注意到它引起了奇怪的显示毛刺,至少有 ComboBox 控制:

To fix this issue, I set all the fonts to Segoe UI (or SystemFonts.MessageBoxFont) instead. This works quite well for most of Controls, but I noticed it causes weird display glitches with at least the ComboBox control:

ComboBox 无法正确显示此列表。

The ComboBox fails to display this list correctly. Characters get cropped oddly and the selected item looks like it requires more space than originally reserved.

此行为有任何解决方案或解决方法吗?

Is there any solution or workaround to this behaviour?

如果你想自己尝试,这里是我的项目列表:

In case you want to try it for yourself, here's my list of items:


  • テスト

  • てすと

  • 実験


推荐答案

我在Win7上复制。有些东西是在字体映射器中通过它的外观,替代字体显然太大了。值得注意的是,Microsoft Sans Serif不会发生 的问题。

I repro on Win7. Something is borked in the font mapper by the looks of it, the substitute font is clearly too large. Notable is the problem does not occur with Microsoft Sans Serif. And it maps just fine on my machine.

在这里提供便宜的建议,你真的需要微软支持的帮助。你也应该检查它在日本版的Windows,赔率体面,它将有字体,不需要映射。

Tough to give cheap advice here, you really need the help from Microsoft Support. You also ought to check it on the Japanese version of Windows, odds are decent that it will have fonts that don't require mapping.

这篇关于ComboBox与Segoe UI和日语文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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