Re:How Stdbuf Works
by bxparks on Friday November 11, 2022 @01:07PM
(#33564388)
Sheeet, I didn't even know that was possible. Why would they use that font for displaying C code? I looked at that ≠ and spent a few minutes trying to figure out what language it was. Maybe I should uncheck the "Allow pages to choose their own fonts, instead of your selections above" option in Firefox, though it woulld probably break other websites.
[ Parent
| on HN ]
>Why would they use that font for displaying C code?
Using ligature fonts for programming became popular a few years ago. As in some people even use them in their editors.
Which is totally fine on their own machine, but using a webfont to force ligatures on anyone viewing their website is just confusing as a reader.
No, I get it. I don't use them either because I find them confusing. I'm just telling you you missed out on what was a quite popular trend from a few years ago.
Lately my Firefox has been showing a ligature for "fi" in monospace code blocks, showing those two characters in the width of a single character. On every website with code blocks. It is mildly infuriating and I don't understand it.
Right-click the ligature text -> Inpsect. In the Inspector, on the right there is a tab called "Fonts" (to the right of "Rules", "Layout", etc). That will show you what font(s) Firefox used to render all the text in the selected element.
I used Stylus to force ligatures off at some point, it mostly worked but caused some other issues.
Re:How Stdbuf Works
by chrisshroba on Friday November 11, 2022 @02:17PM
(#33565370)
FYI Fira Code is one example of a very popular programming font that supports ligatures (67k stars on GitHub) [1]. But totally get the frustration of seeing ligatures on the web and not understanding what was going on!
Re:How Stdbuf Works
by kevin_thibedeau on Friday November 11, 2022 @10:15PM
(#33569609)
> though it woulld probably break other websites.
It only breaks sites that are too poorly developed to respect the foundational principles of the web.