4 ms·
Please change code { font-family: 'DejaVu Sans Mono'; } in your CSS to code { font-family: 'DejaVu Sans Mono', monospace; } For people witho
by oefrha 4y ago
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.
- kazinator 4y agoHow about: font-family: monospace; and that's it.
- dsvr 4y agoI 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.
- blep_ 4y agoSo change the monospace font in your browser.
- dusted 4y agoWhile 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! :)
- scoopertrooper 4y agoCould 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.
- deleted 4y ago[deleted]
- forgotpwd16 4y agoDejaVu Mono is also my preferred monospace font. Have tried some other popular ones but always returned to it.
- dsvr 4y agoGreat suggestion, thanks. Will do.
- dsvr 4y agoIt is fixed. Thanks again.
- deleted 4y ago[deleted]