You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Lib/extractor/__init__.py
+63
Original file line number
Diff line number
Diff line change
@@ -75,3 +75,66 @@ def extractUFO(
75
75
raiseExtractorError(
76
76
"There was an error reading the %s file."%format
77
77
)
78
+
79
+
80
+
defcmdline():
81
+
"""
82
+
Extract one ore more fonts to UFO. Installed as command line script
83
+
`extractufo`.
84
+
85
+
Usage: extractufo font [font ...]
86
+
"""
87
+
importos
88
+
fromsysimportexit
89
+
fromargparseimportArgumentParser
90
+
91
+
parser=ArgumentParser(
92
+
description="Extract data from font binaries and build UFO objects from them.",
93
+
epilog="Each resulting UFO will be saved as FONT_FILE.ufo(z) in the same directory as the original FONT_FILE. "
94
+
"If destination file or directory already exists, conversion for that source file will be skipped and the application exit code will indicate an error.",
95
+
)
96
+
parser.add_argument('FONT_FILE', help='Input font path', nargs="+")
0 commit comments