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.
精彩评论