0

I tried using fontforge to remove unused glyphs in order to make font file size lower. I removed them from a woff file and exported as woff, but the result was low quality. Any advice?

enter image description here

2
  • Looks like a problem with font hinting. Seems like a big task to modify a font to win a few bytes. Is the font file very large? Some fonts come in different versions with a different amount of characters.
    – Wolff
    Mar 9 at 21:25
  • @Wolff The font sizes aren't that large but removing unused glyphs reduces the font size by over 50% and it has a surprisingly big effect on page speed mobile tests.
    – jiii
    Mar 11 at 10:21

2 Answers 2

0

Does it have to be a GUI tool? You may want to consider using fonttools to optimize your fonts. One tool built on fonttools that seems to match your requirements to the t is beatrix. You can give it a config that specifies which characters and font features to keep, and it will drop the rest.

I have not used beatrix myself, but I'm using fonttools to optimize woff files in production so the base is solid. If beatrix is not to your liking, there are tons of other scripts built on fonttools.

0

woff is probably not the best format to start from, since it's already compressed. Start, if available, with the source file (.ufo, perhaps?) If not, try .otf or .ttf. Then the main issue is probably that the export settings for hinting are different in your new version. if changing source files makes no difference, try changing those settings

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.