Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"font servers are the problem here, making several requests to download not only fonts but also js scripts."

Right. You no longer need Javascript to download fonts. You don't need multiple versions of the font any more, either. TTF, OTF, or WOFF work on everything current.[1] Early iPhone models (IOS < 4)only accepted fonts in SVG, which was strange, but now they're on board.

If you need to convert from one font format to another, see [2].

[1] http://caniuse.com/#feat=ttf [2] http://www.fontsquirrel.com/tools/webfont-generator




Thanks. You can also put base64 encoded fonts directly inside your stylesheets; works very well, just be careful choosing not too large fonts.


Font squirrel lets you do custom subsetting, so you can generate a tiny custom font with only a few characters. I do up exactly that with Font Awesome, so I'm only getting the characters I need.


Yes, I did that too in the past for icons but now I just use inline svg - it's tiny and you can style then so... multicolor and animated icons!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: