News for hackers. Stuff that matters.
Re:New embedded programming language with C as a host language by oefrha on Tuesday July 26, 2022 @01:30AM (#32234628)
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.
Re:New embedded programming language with C as a host language by kazinator on Tuesday July 26, 2022 @01:33AM (#32234645)
How about:

  font-family: monospace;
and that's it.
Re:New embedded programming language with C as a host language by dsvr on Tuesday July 26, 2022 @01:54AM (#32234774)
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.
Re:New embedded programming language with C as a host language by blep_ on Tuesday July 26, 2022 @02:30AM (#32235065)
So change the monospace font in your browser.
Re:New embedded programming language with C as a host language by scoopertrooper on Tuesday July 26, 2022 @10:02AM (#32238401)
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.

Re:New embedded programming language with C as a host language by dusted on Tuesday July 26, 2022 @04:51AM (#32235870)
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! :)

Re:New embedded programming language with C as a host language by forgotpwd16 on Tuesday July 26, 2022 @04:37AM (#32235794)
DejaVu Mono is also my preferred monospace font. Have tried some other popular ones but always returned to it.
Re:New embedded programming language with C as a host language by dsvr on Tuesday July 26, 2022 @01:52AM (#32234760)
It is fixed. Thanks again.
Re:New embedded programming language with C as a host language by dsvr on Tuesday July 26, 2022 @01:37AM (#32234661)
Great suggestion, thanks. Will do.