googlefonts / noto-emoji

Noto Emoji fonts
SIL Open Font License 1.1
3.71k stars 449 forks source link

How should I condense the font file so that it only contains the emoji I need? #423

Closed birdidi closed 8 months ago

birdidi commented 1 year ago

How should I condense the font file so that it only contains the emoji I need

rsheeter commented 8 months ago

Use a subsetter, such as https://fonttools.readthedocs.io/en/latest/subset/. However, as emoji use overlapping multi-codepoint sequences it may get a bit fiddly depending on the specific sequences you want. Worst case you might find you need a utility similar to https://github.com/rsheeter/subset-gf-icons to avoid an over-large closure.