fontBuilder: pass through version and varStore parameter to buildCOLR
This commit is contained in:
parent
85c450b565
commit
8343468689
@ -770,7 +770,7 @@ class FontBuilder(object):
|
|||||||
self.font, conditionalSubstitutions, featureTag=featureTag
|
self.font, conditionalSubstitutions, featureTag=featureTag
|
||||||
)
|
)
|
||||||
|
|
||||||
def setupCOLR(self, colorLayers):
|
def setupCOLR(self, colorLayers, version=None, varStore=None):
|
||||||
"""Build new COLR table using color layers dictionary.
|
"""Build new COLR table using color layers dictionary.
|
||||||
|
|
||||||
Cf. `fontTools.colorLib.builder.buildCOLR`.
|
Cf. `fontTools.colorLib.builder.buildCOLR`.
|
||||||
@ -778,7 +778,9 @@ class FontBuilder(object):
|
|||||||
from fontTools.colorLib.builder import buildCOLR
|
from fontTools.colorLib.builder import buildCOLR
|
||||||
|
|
||||||
glyphMap = self.font.getReverseGlyphMap()
|
glyphMap = self.font.getReverseGlyphMap()
|
||||||
self.font["COLR"] = buildCOLR(colorLayers, glyphMap=glyphMap)
|
self.font["COLR"] = buildCOLR(
|
||||||
|
colorLayers, version=version, glyphMap=glyphMap, varStore=varStore
|
||||||
|
)
|
||||||
|
|
||||||
def setupCPAL(
|
def setupCPAL(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user