dev-util/fontmake: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-06-19 03:18:24 +02:00
parent 7fda19020e
commit 8230fe668e
5 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--- a/Lib/fontmake/__main__.py
+++ b/Lib/fontmake/__main__.py
@@ -238,7 +238,7 @@ def main(args=None):
dest="overlaps_backend",
metavar="BACKEND",
choices=("booleanOperations", "pathops"),
- default="booleanOperations",
+ default="pathops",
help="Select library to remove overlaps. Choose between: %(choices)s "
"(default: %(default)s)",
)
@@ -291,7 +291,7 @@ def main(args=None):
)
contourGroup.add_argument(
"--subroutinizer",
- default=None,
+ default="cffsubr",
choices=["compreffor", "cffsubr"],
help="name of the library to use for compressing CFF charstrings. "
"Choose between: %(choices)s. By default compreffor is used for CFF 1, "

View File

@@ -0,0 +1,12 @@
--- a/Lib/fontmake/font_project.py
+++ b/Lib/fontmake/font_project.py
@@ -149,8 +149,7 @@ class FontProject:
os.mkdir(master_dir)
if instance_dir is None:
instance_dir = self._output_dir("ufo", is_instance=True)
+ instance_dir = os.path.join("..",instance_dir)
- if not os.path.isdir(instance_dir):
- os.mkdir(instance_dir)
try:
font = glyphsLib.GSFont(glyphs_path)