Skip to content

Commit

Permalink
Use shiny new fonttools API
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens authored and anthrotype committed Jan 10, 2024
1 parent 6473bbb commit a591759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions Lib/ufo2ft/_compilers/baseCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,16 +379,4 @@ def compile_variable_features(self, designSpaceDoc, ttFont, glyphSet):
featureCompiler.writeFeatures(self.debugFeatureFile)

# Add back feature variations, as the code above would overwrite them.
designSpaceData = varLib.load_designspace(designSpaceDoc)
featureTag = designSpaceData.lib.get(
varLib.FEAVAR_FEATURETAG_LIB_KEY,
"rclt" if designSpaceData.rulesProcessingLast else "rvrn",
)
if designSpaceData.rules:
varLib._add_GSUB_feature_variations(
ttFont,
designSpaceData.axes,
designSpaceData.internal_axis_supports,
designSpaceData.rules,
featureTag,
)
varLib.addGSUBFeatureVariations(ttFont, designSpaceDoc)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
setup_requires=pytest_runner + wheel + ["setuptools_scm"],
tests_require=["pytest>=2.8"],
install_requires=[
"fonttools[ufo]>=4.44.3",
"fonttools[ufo]>=4.46.0",
"cffsubr>=0.2.8",
"booleanOperations>=0.9.0",
],
Expand Down

0 comments on commit a591759

Please sign in to comment.