Live data from Hacker News

Ask HN: Alternatives to Google Fonts?

news.ycombinator.com

1–7 of 7 posts

Ask HN: Alternatives to Google Fonts?

#1
I'd like to use a nice web font on my personal website, but I don't want to involve Google. I could of course download and serve the fonts myself, which I may end up doing, but a CDN would still be nice. Are there any good alternatives to Google Fonts?

Re: Ask HN: Alternatives to Google Fonts?

#3

Just put the font files on the same server as your images and other page assets. Given how small font files are, there's little benefit to serving them from a CDN if the rest of your site isn't.

When you are hosting on your own server, trim the font file to only serve the characters of the language you will using, which often translates to ascii characters. That greatly reduced font file size. If any character on your page falls outside that range, the default font of browser will kick in.

Re: Ask HN: Alternatives to Google Fonts?

#4
post #3

Just put the font files on the same server as your images and other page assets. Given how small font files are, there's little benefit to serving them from a CDN if the rest of your site isn't.

When you are hosting on your own server, trim the font file to only serve the characters of the language you will using, which often translates to ascii characters. That greatly reduced font file size. If any character on your page falls outside that range, the default font of browser will kick in.

That seems a bit much. Not great when you have to go through the process everytime you update your site. Or more likely, you will forget you implemented this & also how you did it in the first place..

Re: Ask HN: Alternatives to Google Fonts?

#5
post #3

Earlier quoted context omitted.

When you are hosting on your own server, trim the font file to only serve the characters of the language you will using, which often translates to ascii characters. That greatly reduced font file size. If any character on your page falls outside that range, the default font of browser will kick in.

That seems a bit much. Not great when you have to go through the process everytime you update your site. Or more likely, you will forget you implemented this & also how you did it in the first place..

It's unlikely you start writing Hebrew or Greek someday.

And even so, that minification can be automated.