From c3660cb04d980e06ca549695755710ce52d86298 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 16 Jul 2021 13:16:54 +0100 Subject: [PATCH] Use basefilter directly --- Lib/ufo2ft/filters/optimizeAnchors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/ufo2ft/filters/optimizeAnchors.py b/Lib/ufo2ft/filters/optimizeAnchors.py index af7395713..1df49e566 100644 --- a/Lib/ufo2ft/filters/optimizeAnchors.py +++ b/Lib/ufo2ft/filters/optimizeAnchors.py @@ -1,4 +1,5 @@ from ufo2ft.filters.transformations import TransformationsFilter +from ufo2ft.filters import BaseFilter from fontTools.misc.transform import Identity, Transform import logging @@ -7,8 +8,9 @@ class OptimizeAnchorsFilter(TransformationsFilter): def set_context(self, font, glyphSet): - # Skip over transformations filter to base filter - return super(TransformationsFilter, self).set_context(font, glyphSet) + self.context = BaseFilter.set_context(self, font, glyphSet) + + return self.context def filter(self, glyph): if len(glyph.anchors) == 0 or any(