[cantarell-fonts/ufo-conversion] update-gdef.py: Use ufolib2
- From: Nikolaus Waxweiler <nwaxweiler src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cantarell-fonts/ufo-conversion] update-gdef.py: Use ufolib2
- Date: Wed, 20 Mar 2019 23:48:17 +0000 (UTC)
commit 535ebd3580de26cbc53f6c4b6acba987bd9aa64f
Author: Nikolaus Waxweiler <madigens gmail com>
Date: Wed Mar 20 23:44:55 2019 +0000
update-gdef.py: Use ufolib2
scripts/update-gdef.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/scripts/update-gdef.py b/scripts/update-gdef.py
index 9104d06d..ad3d42fd 100644
--- a/scripts/update-gdef.py
+++ b/scripts/update-gdef.py
@@ -1,4 +1,4 @@
-"""Update the shared GDEF definition feature file.
+"""Update the GDEF definition in the feature file.
We want our own because Glyphs has the habit of propagating anchors on
_everything_, even symbols that happen to contain components of latin
@@ -8,7 +8,7 @@ glyphs with anchors.
from pathlib import Path
from typing import Any, Dict, List
-import defcon
+import ufoLib2
import glyphsLib.builder.constants
import glyphsLib.glyphdata
import ufo2ft.filters
@@ -97,7 +97,7 @@ if __name__ == "__main__":
# The list of glyph names for anchor propagation is stored in the main UFO
# (main == whatever has info=1 set in the Designspace).
main_source_path = source_directory / "Cantarell-Regular.ufo"
- main_source = defcon.Font(main_source_path)
+ main_source = ufoLib2.Font.open(main_source_path)
pre_filter, _ = ufo2ft.filters.loadFilters(main_source)
for pf in pre_filter:
pf(font=main_source) # Run propagation filters on main UFO
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]