aboutsummaryrefslogtreecommitdiff
path: root/Lib/fontTools/fontBuilder.py
diff options
context:
space:
mode:
authorRod S <rsheeter@google.com>2022-03-25 12:41:45 -0700
committerSeigo Nonaka <nona@google.com>2022-03-25 12:49:44 -0700
commit0b59a54a78ee22be83fe249c724c19ebd7d26ede (patch)
tree98d81cb66669c50af608fd8a844e22039a00f5ae /Lib/fontTools/fontBuilder.py
parent7464785773cfc59c180c0dbd4b8f91dbe9d5c49f (diff)
downloadfonttools-0b59a54a78ee22be83fe249c724c19ebd7d26ede.tar.gz
Update FontTools to 4.31.2 to gain access to iterSubTables.
Needed to facilitate implementation of additional emoji font validation. Ran tools/external_updater/updater.sh update fonttools Bug: 226676748 Test: will run presubmit Test: m fontchain_lint Change-Id: I1207eea8394848bd2ef5040de9aebc8f940b1d96
Diffstat (limited to 'Lib/fontTools/fontBuilder.py')
-rw-r--r--Lib/fontTools/fontBuilder.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/Lib/fontTools/fontBuilder.py b/Lib/fontTools/fontBuilder.py
index e2824084..bf3b31b7 100644
--- a/Lib/fontTools/fontBuilder.py
+++ b/Lib/fontTools/fontBuilder.py
@@ -834,7 +834,14 @@ class FontBuilder(object):
self.font, conditionalSubstitutions, featureTag=featureTag
)
- def setupCOLR(self, colorLayers, version=None, varStore=None):
+ def setupCOLR(
+ self,
+ colorLayers,
+ version=None,
+ varStore=None,
+ varIndexMap=None,
+ clipBoxes=None,
+ ):
"""Build new COLR table using color layers dictionary.
Cf. `fontTools.colorLib.builder.buildCOLR`.
@@ -843,7 +850,12 @@ class FontBuilder(object):
glyphMap = self.font.getReverseGlyphMap()
self.font["COLR"] = buildCOLR(
- colorLayers, version=version, glyphMap=glyphMap, varStore=varStore
+ colorLayers,
+ version=version,
+ glyphMap=glyphMap,
+ varStore=varStore,
+ varIndexMap=varIndexMap,
+ clipBoxes=clipBoxes,
)
def setupCPAL(