开发者

Reducing Font File Size

开发者 https://www.devze.com 2023-03-02 20:22 出处:网络
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 t

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

精彩评论

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