Cambria Math large upper and lower margin

I wanted to show some math expressions in the winforms text box. So I thought the Cambria Math font would be a good choice, but the text looked weird because of the high top and bottom edges of the font. At first I thought I made a mistake, but according to this question , this is the correct font behavior.

Screenshots of the textbox

Why does Cambria Math have these large field values ​​and how can I correctly display a string in a text field like Word 2010?

(Note that I know a little about typography;)

Edit: I needed to make the text field dark, otherwise the caret would be invisible. The text box font size is 8.25pt

+6
source share
1 answer

Cambria Math uses Microsoft OpenType math extensions.

Word 2007 and later understand them and display text at reasonable intervals.

However, Notepad and Word 2000 display text at huge intervals, like winforms. I assume the font has such a default space because some characters (e.g. U + 2320, upper half of the integral) are much larger than alphanumeric characters.

If you use Cambria Math with a font engine (such as the one used by winforms) that does not understand math extensions, you will get a large spacing.

If you show simple expressions, you can also use Cambria.

+6
source

Source: https://habr.com/ru/post/904428/


All Articles