-- Leo's gemini proxy

-- Connecting to ayushnix.com:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Don't Use Font Weight Less Than 400


As I'm working on a CSS side project which has ended up taking more of my time than I would've liked, I frequently come across blogs where website authors use "font-weight" values less than 400 on some HTML elements.


I don't claim to be an expert myself but maybe a blog post that talks about accessibility shouldn't assume that a user will definitely download a web font that makes headings look fine at a font weight of 100, which is extremely unusual, to say the least?


"<h2>" element with a "font-weight" of 100


I mean, the value of "font-family" should have a fallback value like "sans-serif" for a reason — to use system fonts in case web fonts are not loaded. Even if a user doesn't block web fonts like I do, Flash of Unstyled Text (FOUT) is a possibility that should be considered when using web fonts, assuming the website author has chosen not to completely hide text until a web font loads, which sounds worse. If FOUT happens, unstyled text should, at the very least, be reasonably similar to the web font in question. I don't think any system font is going to look usable at a "font-weight" value of 100.


Flash of Unstyled Text


Please stop using "font-weight" lesser than 400 on your websites, unless there's an excellent reason.


---


Created: 2022-09-04


MicroGemlog

Home

-- Response ended

-- Page fetched on Mon May 20 18:01:51 2024