You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
231 B

from json import load
from sys import argv
ttf = fontforge.open(argv[1])
for emoji in load(open('emoji.json')):
try:
ttf.removeGlyph(int(emoji['unified'], 16))
except ValueError:
pass
ttf.generate(argv[1])