Skip to content

Commit

Permalink
outlineCompiler: pass glyphMap to buildCOLR to ensure base records ar…
Browse files Browse the repository at this point in the history
…e sorted by GID

same as fonttools/fonttools#2166
  • Loading branch information
anthrotype committed Feb 1, 2021
1 parent fefa663 commit 648e7a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/ufo2ft/outlineCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,9 @@ def setupTable_COLR(self):
from fontTools.colorLib.builder import buildCOLR

layerInfo = self.ufo.lib[COLOR_LAYERS_KEY]
glyphMap = self.otf.getReverseGlyphMap()
if layerInfo:
self.otf["COLR"] = buildCOLR(layerInfo)
self.otf["COLR"] = buildCOLR(layerInfo, glyphMap=glyphMap)

def setupTable_CPAL(self):
"""
Expand Down

0 comments on commit 648e7a1

Please sign in to comment.