Hacker News new | ask | show | jobs
by atonse 2166 days ago
Picking the font based on the browser – surely there's an open source plugin for NGINX or something that could replicate this?

This is a perfect sort of thing as a Caddy plugin too. Or a CDN provider to provide this out of the box.

The CloudFlare people could do this in a weekend probably and I'd happily sign up because I'm less concerned about my privacy with CF than with Google.

But is this even an issue? If you declare the 4 different formats, won't the browser know to request the best one automatically?

1 comments

Sure, it’s called the bulletproof @font-face syntax. But that means you’ve got to get the fonts in all of the formats, for starters. I don’t think it’s worth it at all, for the stated reason. Three years ago maybe, but definitely not now.