diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-10-01 02:59:23 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-10-11 09:38:25 +0300 |
commit | 83a462bc65759d0a7cf07545c75847877460e8bf (patch) | |
tree | 88a2a4371e3d3ab56659f80801c6c10eed992f91 | |
parent | f8d9bd31b01acf077f5223d3b1e888e15aa14722 (diff) | |
download | inter-83a462bc65759d0a7cf07545c75847877460e8bf.tar.xz |
fontbuild: add disabled code as reference for performing overlap elimination as a separate step
-rwxr-xr-x | misc/fontbuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/fontbuild b/misc/fontbuild index b670a68e5..2daadbee8 100755 --- a/misc/fontbuild +++ b/misc/fontbuild @@ -24,6 +24,7 @@ from fontTools.pens.reverseContourPen import ReverseContourPen from glyphsLib.interpolation import apply_instance_data from mutatorMath.ufo.document import DesignSpaceDocumentReader from multiprocessing import Process, Queue +# from ufo2ft.filters.removeOverlaps import RemoveOverlapsFilter log = logging.getLogger(__name__) stripItalic_re = re.compile(r'(?:^|\b)italic(?:\b|$)', re.I | re.U) @@ -114,6 +115,13 @@ class VarFontProject(FontProject): decomposeGlyphs.add(glyph.name) self.decompose_glyphs(ufos, lambda g: g.name in decomposeGlyphs) + + # for ufo in ufos: + # filter = RemoveOverlapsFilter(backend='pathops') + # filter.start() + # for g in ufo: + # filter.filter(g) + self.save_otfs(ufos, ttf=True, interpolatable=True, **kwargs) |