Reputation: 24474
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 getting them much smaller?
Upvotes: 2
Views: 5455
Reputation: 1079
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 :)
Upvotes: 4
Reputation: 2483
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.
Upvotes: 3