fred-wang / Mathzilla

Collection of Mozilla MathML add-ons
35 stars 8 forks source link

Very high font (and spacing above and below) #33

Closed kunegis closed 8 years ago

kunegis commented 8 years ago

screenshot from 2016-01-05 20 03 48

See the uploaded screenshot. Math text (e.g., on the Wikipedia page "Dedekind number" as in the attached screenshot) has multiple empty lines above and below it. Parentheses are much too high (by a factor of 5 or so), and result in only a few lines of maths being displayed on the full screen.

Using:
Firefox 43.0 Ubuntu 14.4 MathML-fonts 2.1.1-signed MathML Font Settings 0.2.1-signed

Settings of MathML Font Settings: Font family list: Asana Math, Cambria Math, Latin Modern Math, Lucida Bright Math, Minion Math, Neo Euler, STIX Math, TeX Gyre Bonum Math, TeX Gyre Pagella Math, TeX Gyre Schola Math, TeX Gyre Termes Math, XITS Math Font family: [empty setting] Font scale: 129 Use important rules: yes

fred-wang commented 8 years ago

This is probably because the Ubuntu release contains obsolete fonts without the USE_TYPO_METRICS bit set, see https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1473552 https://bugzilla.mozilla.org/show_bug.cgi?id=1208776

You can find the latest version at http://www.gust.org.pl/projects/e-foundry/lm-math

fred-wang commented 8 years ago

Sorry it is https://bugs.launchpad.net/ubuntu/+source/lmodern/+bug/1502701

kunegis commented 8 years ago

Thanks, it worked

For the record, I managed to fix the bug by hand by performing these steps:

fred-wang commented 8 years ago

Glad to hear that. Just an additional remark: the MathML-fonts add-on contains web fonts for Latin Modern Math, but the system version are always tried first if they are available. Unfortunately, the one distributed by Ubuntu doesn't have the use_typo_metris bit, which explains why you saw the bug.