TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Is there such a thing as a web-safe font?

35 pointsby mariuz4 months ago

10 comments

dvh4 months ago
I've been writing "font-family: sans-serif" when I wanted user preferred font without serifs and "monospace" for user preferred monospace font. Is that not the correct way?
评论 #42726515 未加载
评论 #42725151 未加载
评论 #42726190 未加载
efitz4 months ago
The web is backwards. Designers and web site operators spend ridiculous amounts of engineering trying to control what users see, with the limitation that they have no control (other than exclusion) over what software the users chooses to view the content.<p>HTML went way too far IMO, trying not only to represent the structure of information, but ALSO trying to solve the layout problem.<p>It will never happen, but I long for a web where layout and content are disassociated. Where content is structured, requested by clients, delivered by servers, and then the client chooses the layout. Blind? Terminal only? Compute limited? No problem, use an agent that works for you.<p>But big content wants CONTROL. They want to control what you see, how you see it, and what the preconditions are. They also want the web to be an application platform (that they can control, of course, and not have to deal with Apple or Google or Microsoft) that is free to them and supports all their controls.<p>&lt;rant&#x2F;&gt;
评论 #42734280 未加载
mpol4 months ago
There is the system font that you can use:<p>font-family: &#x27;system-ui&#x27;, sans-serif;<p>System fonts and font rendering are now so good for readability, that you don&#x27;t need anything else. I use it on one website where I don&#x27;t care about pixel-perfect. In cases where the customer&#x2F;owner wants a pixel-perfect layout, this will not work.
评论 #42724903 未加载
vFunct4 months ago
There really should be a set of a few hundred fonts standardized by the w3c or whatwg that should come with every browser (and OS) install.<p>This would be like how early versions of PostScript came with about 30 standard fonts available to all PostScript printers.
评论 #42725246 未加载
评论 #42724977 未加载
评论 #42726452 未加载
评论 #42726513 未加载
rcarmo4 months ago
Kind of ironic that the heading font takes enough time to load that there is a flash and the layout shifts around.<p>I have long decided to skip web fonts altogether and go with a) Georgia and b) a fallback font stack that suggests a couple of similar alternatives that are common across operating systems and falls back to standard defaults.
JodieBenitez4 months ago
serif, sans-serif, monospace<p>There, you have it, and it&#x27;s perfect.
ss644 months ago
The whole point of a font stack is to give a prioritised selection between beautiful modern fonts that won&#x27;t be available on every machine and basic standard defaults like &#x27;sans-serif&#x27; that will.
kome4 months ago
I think the W3C or somebody else should make Arial and Times New Roman standard and open source.
评论 #42724803 未加载
anshumankmr4 months ago
Yes. It&#x27;s comic sans :)
seydor4 months ago
Yes, verdana
评论 #42727681 未加载