diff options
| author | robot-piglet <[email protected]> | 2025-07-18 09:09:17 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-07-18 09:21:36 +0300 |
| commit | b27290b9f146a42ce239e15c67cf203f4a151aa7 (patch) | |
| tree | f1aea70e5c4f342eb93a862e4ed3b5714b353cce /contrib/python/fonttools/fontTools/feaLib/ast.py | |
| parent | 9976b916cb8114c23b8b981651f6c4b6256a502a (diff) | |
Intermediate changes
commit_hash:134fe147a2593cd4e39895d6b77ac876aa724f8b
Diffstat (limited to 'contrib/python/fonttools/fontTools/feaLib/ast.py')
| -rw-r--r-- | contrib/python/fonttools/fontTools/feaLib/ast.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/python/fonttools/fontTools/feaLib/ast.py b/contrib/python/fonttools/fontTools/feaLib/ast.py index 9663f73b4c8..2624e6b9d6d 100644 --- a/contrib/python/fonttools/fontTools/feaLib/ast.py +++ b/contrib/python/fonttools/fontTools/feaLib/ast.py @@ -1,3 +1,4 @@ +import weakref from fontTools.feaLib.error import FeatureLibError from fontTools.feaLib.location import FeatureLibLocation from fontTools.misc.encodingTools import getEncoding @@ -529,7 +530,7 @@ class MarkClass(object): def addDefinition(self, definition): """Add a :class:`MarkClassDefinition` statement to this mark class.""" assert isinstance(definition, MarkClassDefinition) - self.definitions.append(definition) + self.definitions.append(weakref.proxy(definition)) for glyph in definition.glyphSet(): if glyph in self.glyphs: otherLoc = self.glyphs[glyph].location |
