mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-25 07:20:40 +08:00
11 lines
231 B
Python
11 lines
231 B
Python
|
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])
|