Hacker News new | past | comments | ask | show | jobs | submit login

Please change

  code {
    font-family: 'DejaVu Sans Mono';
  }
in your CSS to

  code {
    font-family: 'DejaVu Sans Mono', monospace;
  }
For people without DejaVu Sans Mono installed (or for browsers doing a good job at defeating font fingerprinting), which would be most people, the code sample is rendered in the default proportional font, which is very ugly.



How about:

  font-family: monospace;
and that's it.


I found DejaVu Sans Mono to be a bit thinner and easier on the eyes. Either way is fine really. One of those whimsical decisions, I guess.


So change the monospace font in your browser.


Could this not be said about any stylistic choice though? Why should websites pick their own heading weight? What's wrong with the default text colour? Who are you to tell the browser not to use the default padding?

People have been mucking about with typography since Gutenberg's day and they're not going to stop now.

I'm personally 'font blind', but I don't have a problem with people being creative and making aesthetic choices.


While I'm totally on board with you on the principle that a website should inform the browser what is, not how to show it, that particular site is hardly the place for this discussion...

_ANY_ article about CSS and client side javascript however.. go go go! :)


DejaVu Mono is also my preferred monospace font. Have tried some other popular ones but always returned to it.


It is fixed. Thanks again.


Great suggestion, thanks. Will do.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: