by oefrha · 4y ago · 0 comments
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. font-family: monospace;
and that's it.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.
_ANY_ article about CSS and client side javascript however.. go go go! :)