[merge] Don’t process CFF before all other tables

I don’t know why this code was there, but my tests make no difference
with or without it.
This commit is contained in:
Khaled Hosny 2021-11-17 07:00:31 +02:00
parent a53ded3b31
commit 6acf76996e

View File

@ -1100,16 +1100,13 @@ class Merger(object):
allTags = reduce(set.union, (list(font.keys()) for font in fonts), set())
allTags.remove('GlyphOrder')
# Make sure we process CFF before cmap, and cmap before GSUB as we have a dependency there.
# Make sure we process cmap before GSUB as we have a dependency there.
if 'GSUB' in allTags:
allTags.remove('GSUB')
allTags = ['GSUB'] + list(allTags)
if 'cmap' in allTags:
allTags.remove('cmap')
allTags = ['cmap'] + list(allTags)
if 'CFF ' in allTags:
allTags.remove('CFF ')
allTags = ['CFF '] + list(allTags)
for tag in allTags:
with timer("merge '%s'" % tag):