[rust-docs] Menus in the rust docs are invisible on some machines


#1

This is a bit meta since it’s about the rust docs web site.

For some reason, the various menus, etc on the rust docs site are invisible on my Linux machine:

I’ve tried it in several different browsers on this machine and they all have the same result.

I’m able to see things just fine from my Windows machine.

I did notice a simple javascript error in main.js, but it seems unrelated: http://i.imgur.com/r3U1vpi.png

I know this is most likely an issue on my Linux machine but I haven’t seen it on any site besides the rust docs… Is anyone else seeing this?? Any ideas what might be going on?


#2

I access the rust documentation from two different linux machines pretty regularly (Mint 17.1/17.2 xfce) from Chromium. I have seen this problem once or twice, and a refresh usually fixed it. I just assumed I was pulling the data at the same time new versions of the docs where being pushed up to the server.


#3

Yeah, check your browser console, I bet the font is corrupted.


#4

Also try this in a terminal:

firefox --P dev --no-remote

dev is the name of a profile which must be new. If you already have one called that, change dev to some other name and create that new profile in the profile tool.

If that fixes it, go back to your normal profile and do Options -> Help -> Troubleshooting information -> Refresh firefox in the top right. Choose whatever settings you prefer in the dialogues.


#5

Sure enough, looks like the sidebar is using the “Fira Sans” font, which appears to be busted on my system. If I use Chrome’s dev tools to remove that font from the font-family list for the sidebar class everything shows up!

Thanks everyone!


#6

There appears to be a bug in Fira from google webfonts on Linux: https://github.com/google/fonts/issues/10


#7

Here’s a stylish style that can be applied to doc.rust-lang.org if anyone else is having this same issue:

h1, h2, h3, h4, .sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}