坎布里亚数学大顶和底边距 [英] Cambria Math big top and bottom margin

查看:179
本文介绍了坎布里亚数学大顶和底边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想表现出一个WinForms文本框的一些数学表达式。于是,我想到了坎布里亚数学字体将是一个不错的选择,但文本看上去有些诡异,由于字体的高顶和底边距。首先,我因子评分我做了个错误,但由于这个问题其字体的正确的行为。

I wanted to show some mathematical expressions in a winforms textbox. So I thought the "Cambria Math" font would be a good choice but the text looked strange due the high top and bottom margin of the font. First I tought I made an mistake but due this question its the correct behavior of the font.

为什么坎布里亚数学有这些大幅度的价值观和我怎样才能像Word 2010中的文本框中正确显示我的字符串?

Why does Cambria Math has these big margin values and how can I display my string correctly in the textbox like Word 2010?

(请注意,我只知道大概的排版一点点;)

(Note that I know only a little bit about typography ;)

编辑:我不得不作出的文本框那高大否则插入符号是invisble。文本框的字体大小设置为8.25pt

I had to make the textbox that tall otherwise the caret would be invisble. The font size of the textbox is set to 8.25pt

推荐答案

坎布里亚数学使用微软的数学OpenType字体的扩展。

Cambria Math uses Microsoft's mathematical OpenType extensions.

Word 2007和后来了解这些,并显示与合理间距的文本。

Word 2007 and later understand these and display the text with reasonable spacing.

然而,记事本和Word 2000显示着巨大的间距文本,就像WinForms的。我猜的字体在默认情况下有这么多的空间,因为一些字符(如U + 2320,前半整数)比字母数字大得多。

However, notepad and Word 2000 display the text with enormous spacing, just like winforms. I guess the font has this much space by default because some characters (like U+2320, top half integral) are much larger than the alphanumerics.

如果您使用坎布里亚数学用字体引擎(如的WinForms使用的)不理解数学的扩展,你会得到很大的间距。

If you use Cambria Math with a font engine (such as the one used by winforms) that doesn't understand the math extensions, you're going to get the big spacing.

如果你重新显示简单的表达式,你还不如用坎布里亚。

If you're displaying simple expressions you might as well use Cambria.

这篇关于坎布里亚数学大顶和底边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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