开发者

Reducing Font File Size

Let's say I want to use the DejaVu font. The font files are quite large. I noticed that they seem to have lots of extra stuff that I'll probably never need. How can I go about开发者_Go百科 getting them much smaller?


They don't have DejaVu, but with Google Web Fonts, you can limit the character set like:

//fonts.googleapis.com/css?family=FontName&text=Lorem%20Ipsum

To satisfy @Otaku, programmatically generate and URL-encode the list of characters :)


You should be able to use the program Font Forge to open the font and remove excess symbols that you'll never use and then re-export the font, although, unless you're embedding the font in another file (like in a SWF), the size of the font file shouldn't be a big deal.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜