[cantarell-fonts/ufo-conversion] Generate OTF with inplace instance object
- From: Nikolaus Waxweiler <nwaxweiler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cantarell-fonts/ufo-conversion] Generate OTF with inplace instance object
- Date: Thu, 21 Mar 2019 12:13:58 +0000 (UTC)
commit 8e102a1f5f8c643e23c687cc400725697c180c44
Author: Nikolaus Waxweiler <nikolaus waxweiler daltonmaag com>
Date: Thu Mar 21 12:13:43 2019 +0000
Generate OTF with inplace instance object
scripts/make-static-fonts.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/scripts/make-static-fonts.py b/scripts/make-static-fonts.py
index 78570b1f..47f39187 100644
--- a/scripts/make-static-fonts.py
+++ b/scripts/make-static-fonts.py
@@ -20,10 +20,9 @@ def generate_and_write_instance(
# 3. Generate instance UFO.
instance = instantiator.generate_instance(instance_descriptor)
file_stem = f"{instance.info.familyName}-{instance.info.styleName}".replace(" ", "")
- instance.save(output_dir / f"{file_stem}.ufo")
# 4. Compile and write instance OTF to disk.
- instance_font = ufo2ft.compileOTF(instance, removeOverlaps=True)
+ instance_font = ufo2ft.compileOTF(instance, removeOverlaps=True, inplace=True)
output_path = output_dir / f"{file_stem}.otf"
instance_font.save(output_path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]