1

I noticed PHP.net changed the font used to show code examples.

Does someone know what this font is?

enter image description here

Updated: I've set my text editor to use Fira Mono as someone kindly pointed out but still why does it not look like the above?

enter image description here

2
  • Browsers can sometimes render fonts differently. What OS and browser are you using?
    – Brendan
    Commented Jun 27, 2014 at 11:54
  • @Brendan It seems to me like he is trying to recreate the php.net syntax highlighting in his coding application... or partially anyways..
    – Joonas
    Commented Jun 27, 2014 at 12:02

1 Answer 1

5

It's called Fira Mono [Examples] [Download]

font-family: "Fira Mono","Source Code Pro",monospace;

Fira Mono

The letterspacing issue is also fixed with CSS:

letter-spacing: -0.0625rem;
word-spacing: -0.125rem;

3
  • Hi, thanks for the font, can you check the question I updated and if you have any suggestion?
    – JaySh
    Commented Jun 27, 2014 at 11:09
  • Do you know if it's possible to set such settings in Notepad++?
    – JaySh
    Commented Jun 27, 2014 at 11:46
  • It's unlikely that a text editor can alter character spacing. Commented Jun 27, 2014 at 11:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.