Rigel Praes
Rigel Praes

Reputation: 1

Which font Github uses for its code viewer?

Do you know which font github uses for its code viewer? I used several web tools to identify the font but no success.

This is the font:

This is the font

Upvotes: 0

Views: 15927

Answers (3)

Sudarshan Jadhav
Sudarshan Jadhav

Reputation: 1

Most probably Monaco font is being used here

Upvotes: -1

raianmr
raianmr

Reputation: 147

Using Chrome's devtools:

font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;

So, under ideal circumstances, it depends on your browser's settings.

Upvotes: 0

Harsha W
Harsha W

Reputation: 3366

According to the stylesheet, the code is displayed in the first font available on your system:

  1. Consolas (on Windows),
  2. Liberation Mono,
  3. Courier,
  4. monospace

It depends on the fonts you have installed on your computer. For Mac OS X 10.9 it defaults to Courier.

Of course, they may at any point change the font to their liking. E.g. to Comic Sans.

Upvotes: 3

Related Questions