# Math font render problem

I have some issue with the math font for quite some time now. And it only happens on this very site, and not on any other site.

Some of the letters, some of the time, don't render part of the top line of pixels. It's weird. If I increase or decrease the zoom factor in my browser, it goes away. But that's not a solution really.

Note the top of the $X$ and $Y$, as well the top of the $B$.

I have no idea what causes this, and this is the only site where it happens. It happens with Firefox, even in Private Browsing mode (so it's not an issue of cookies). With Chromium it works out just fine.

System details: Arch Linux 64bit, Firefox 26.0

EDIT:

The problem appears on Physics.SE as well, but not on Math.SE, as mentioned. This points out to a problem with the general layout (and in particular the font) of the sites (MO and Phy.SE use sans serif; MSE uses serif). I'm in contact with one of the MathJax developers, and further information will be posted when it is available.

• I'm wondering if the upvotes indicate similar issues and if so on which systems. I'm unable to reproduce this on FF26 Ubuntu 13.10. @Asaf, do you have any plugins installed that might interfere with layout (e.g. ad blockers)? From a quick look, MO does not use any webfonts, so font issues should not be the core. I don't even think it's CSS, it might just be the random browser clipping we sometimes see. More information from other users would be extremely helpful. Jan 23, 2014 at 11:26
• Peter, restarting Firefox in safe mode (no plugins) gives the same result. The letters have choppy tops. Even safe mode + private browsing mode.
– Asaf Karagila Mod
Jan 23, 2014 at 11:28
• Thanks, Asaf. Which Arch Linux version are you on? Jan 23, 2014 at 11:44
• What do you mean exactly? I use the vanilla kernel 3.12.7 (it's been going on through a couple of kernel updates, I just now decided to post a report, though). SLiM + OpenBox + various gtk-based libraries in the background. But I haven't installed or uninstalled anything significant that I can think of when that began.
– Asaf Karagila Mod
Jan 23, 2014 at 11:47
• (Other than that, Arch is a rolling release, so there's no "Hardy Hermite" or "Feisty Freiburger" sort of versions to it...)
– Asaf Karagila Mod
Jan 23, 2014 at 11:48
• @Peter: I think I found the issue. The CSS computes the MathJax font size as 18.4833px, whereas on MSE it computed as 16.2px. When modifying the MSE size to that value, the problem occurs there as well.
– Asaf Karagila Mod
Jan 23, 2014 at 12:12
• The other difference is the computed line-height, 23px on MSE and 27px here.
– Asaf Karagila Mod
Jan 23, 2014 at 12:32
• Hm. Chromium computes the same values, but the font is rendered just fine there.
– Asaf Karagila Mod
Jan 23, 2014 at 13:27
• Thanks for the update on your Arch installation (I forgot it's rolling but good to know it's up to date). Thanks for the additional information. Jan 23, 2014 at 14:23
• No problem. Is there a way to force refreshing the font cache without deleting all the other cache from my drive? (Or maybe there's no font cache to begin with, I'm not versed in webfonts technology...) It seems to go across every site. If I change the font size to exactly 18.4833px this happens, any other value is fine.
– Asaf Karagila Mod
Jan 23, 2014 at 14:36
• It should also be noted that on MSE the font size is 15px, whereas MO has 14px; but due to different fonts the computed MathJax font sizes are different (16.2 vs. 18.4833)
– Asaf Karagila Mod
Jan 23, 2014 at 14:39
• The computed font sizes will vary not just from browser to browser but client to client since font rendering technology differs across operating systems. As for clearing the cache of just MathJax, I don't know. Maybe addons.mozilla.org/de/firefox/addon/cacheviewer2 works for you. Jan 23, 2014 at 18:08
• I've finally been able to reproduce this -- but only on Arch Linux. Reported at github.com/mathjax/MathJax/issues/724 Jan 23, 2014 at 18:10
• The fonts don't show up in the cache, it seems. I tried to refresh the whole MathJax related scripts, but it didn't work. It's interesting that you managed to reproduce this, but only on Arch. Did you install slim+obox like me, or stick to gnome/kde?
– Asaf Karagila Mod
Jan 23, 2014 at 18:15
• I don't think clearing the cache will change this. I was using KDE. Jan 23, 2014 at 18:17

Right click over any $\LaTeX$ output, then "Math Settings", "Scale All Math ..." and set the factor to $99\%$. This will decrease the font size below the 18.4833px by enough to cause proper rendering, but not as much as to cause any visible change.