19 12 / 2011
Github Font Issue on Chrome for Mac
For weeks now, I’ve had the issue, only on the combination of Chrome 16 + Mac OSX 10.7 + Github + my MacBook Pro (I do not have this issue on my desktop Mac Pro, or in other browsers) where the font used for code on Github.com (e.g., for stuff like this) was displaying as the default browser font of Times New Roman. Let me tell you, Times is a painful font for web viewing in any context, but for code it’s downright unreadable.
After a bit of Googling, I ran across this exact issue on the Ask Different site. After using the recommended command line commands to reset my machine’s font cache (who knew such a thing even existed?) I was back to a default monospaced font, at least (Courier, ugh).
The first-choice font for code on Github is Bitstream Vera Sans Mono, a lovely monospaced font that (I thought) I had installed already, but apparently I didn’t (or it had gotten itself removed somehow). So I downloaded and installed it manually, re-cleared my font cache, restarted Chrome, and voilĂ , back to beautiful code.
Random.