fonttools 4.55.3__cp313-cp313-musllinux_1_2_x86_64.whl → 4.55.7__cp313-cp313-musllinux_1_2_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fonttools might be problematic. Click here for more details.
- fontTools/__init__.py +1 -1
- fontTools/feaLib/ast.py +2 -2
- fontTools/feaLib/builder.py +7 -1
- fontTools/misc/bezierTools.c +3256 -2972
- fontTools/misc/bezierTools.cpython-313-x86_64-linux-musl.so +0 -0
- fontTools/misc/bezierTools.py +8 -1
- fontTools/misc/transform.py +13 -15
- fontTools/pens/statisticsPen.py +5 -0
- fontTools/ttLib/tables/_g_l_y_f.py +30 -6
- fontTools/ttLib/tables/_n_a_m_e.py +5 -13
- {fonttools-4.55.3.dist-info → fonttools-4.55.7.dist-info}/METADATA +40 -1384
- {fonttools-4.55.3.dist-info → fonttools-4.55.7.dist-info}/RECORD +279 -279
- {fonttools-4.55.3.dist-info → fonttools-4.55.7.dist-info}/WHEEL +1 -1
- {fonttools-4.55.3.data → fonttools-4.55.7.data}/data/share/man/man1/ttx.1 +0 -0
- {fonttools-4.55.3.dist-info → fonttools-4.55.7.dist-info}/LICENSE +0 -0
- {fonttools-4.55.3.dist-info → fonttools-4.55.7.dist-info}/entry_points.txt +0 -0
- {fonttools-4.55.3.dist-info → fonttools-4.55.7.dist-info}/top_level.txt +0 -0
fontTools/__init__.py
CHANGED
fontTools/feaLib/ast.py
CHANGED
|
@@ -595,8 +595,8 @@ class MarkClassDefinition(Statement):
|
|
|
595
595
|
class AlternateSubstStatement(Statement):
|
|
596
596
|
"""A ``sub ... from ...`` statement.
|
|
597
597
|
|
|
598
|
-
``
|
|
599
|
-
|
|
598
|
+
``glyph`` and ``replacement`` should be `glyph-containing objects`_.
|
|
599
|
+
``prefix`` and ``suffix`` should be lists of `glyph-containing objects`_."""
|
|
600
600
|
|
|
601
601
|
def __init__(self, prefix, glyph, suffix, replacement, location=None):
|
|
602
602
|
Statement.__init__(self, location)
|
fontTools/feaLib/builder.py
CHANGED
|
@@ -1106,7 +1106,13 @@ class Builder(object):
|
|
|
1106
1106
|
if (language == "dflt" or include_default) and lookups:
|
|
1107
1107
|
self.features_[key] = lookups[:]
|
|
1108
1108
|
else:
|
|
1109
|
-
|
|
1109
|
+
# if we aren't including default we need to manually remove the
|
|
1110
|
+
# default lookups, which were added to all declared langsystems
|
|
1111
|
+
# as they were encountered (we don't remove all lookups because
|
|
1112
|
+
# we want to allow duplicate script/lang statements;
|
|
1113
|
+
# see https://github.com/fonttools/fonttools/issues/3748
|
|
1114
|
+
cur_lookups = self.features_.get(key, [])
|
|
1115
|
+
self.features_[key] = [x for x in cur_lookups if x not in lookups]
|
|
1110
1116
|
self.language_systems = frozenset([(self.script_, language)])
|
|
1111
1117
|
|
|
1112
1118
|
if required:
|