[fontBuilder] Add debug to addOpenTypeFeatures
Passed to addOpenTypeFeaturesFromString().
This commit is contained in:
parent
2f1f5e5e7b
commit
3a6b17d9a2
@ -800,7 +800,7 @@ class FontBuilder(object):
|
|||||||
)
|
)
|
||||||
self._initTableWithValues("DSIG", {}, values)
|
self._initTableWithValues("DSIG", {}, values)
|
||||||
|
|
||||||
def addOpenTypeFeatures(self, features, filename=None, tables=None):
|
def addOpenTypeFeatures(self, features, filename=None, tables=None, debug=False):
|
||||||
"""Add OpenType features to the font from a string containing
|
"""Add OpenType features to the font from a string containing
|
||||||
Feature File syntax.
|
Feature File syntax.
|
||||||
|
|
||||||
@ -810,11 +810,14 @@ class FontBuilder(object):
|
|||||||
The optional `tables` argument can be a list of OTL tables tags to
|
The optional `tables` argument can be a list of OTL tables tags to
|
||||||
build, allowing the caller to only build selected OTL tables. See
|
build, allowing the caller to only build selected OTL tables. See
|
||||||
`fontTools.feaLib` for details.
|
`fontTools.feaLib` for details.
|
||||||
|
|
||||||
|
The optional `debug` argument controls whether to add source debugging
|
||||||
|
information to the font in the `Debg` table.
|
||||||
"""
|
"""
|
||||||
from .feaLib.builder import addOpenTypeFeaturesFromString
|
from .feaLib.builder import addOpenTypeFeaturesFromString
|
||||||
|
|
||||||
addOpenTypeFeaturesFromString(
|
addOpenTypeFeaturesFromString(
|
||||||
self.font, features, filename=filename, tables=tables
|
self.font, features, filename=filename, tables=tables, debug=debug
|
||||||
)
|
)
|
||||||
|
|
||||||
def addFeatureVariations(self, conditionalSubstitutions, featureTag="rvrn"):
|
def addFeatureVariations(self, conditionalSubstitutions, featureTag="rvrn"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user