mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-12-13 17:18:37 +02:00
6d86114a38
DO NOT MERGE [why] A lot of the fonts have incorrect naming after patching. A completely different approach can help to come up with a consistent naming scheme. [how] See bin/scripts/name-parser/README.md Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
17 lines
304 B
Python
17 lines
304 B
Python
#!/usr/bin/env python
|
|
# coding=utf8
|
|
|
|
import fontforge
|
|
import sys
|
|
|
|
if len(sys.argv) != 2:
|
|
print("Usage: {} font_name\n".format(sys.argv[0]))
|
|
sys.exit(1)
|
|
|
|
font = fontforge.open(sys.argv[1])
|
|
|
|
panose = list(font.os2_panose)
|
|
print("Panose 4 = {} in {}".format(panose[3], font.fullname))
|
|
|
|
font.close()
|