[subset] Close over MATH before GSUB
I *think* that's the correct way.
This commit is contained in:
parent
15141589ff
commit
f37f2e4a03
@ -3318,20 +3318,6 @@ class Subsetter(object):
|
|||||||
self.glyphs.add(font.getGlyphName(i))
|
self.glyphs.add(font.getGlyphName(i))
|
||||||
log.info("Added first four glyphs to subset")
|
log.info("Added first four glyphs to subset")
|
||||||
|
|
||||||
if self.options.layout_closure and "GSUB" in font:
|
|
||||||
with timer("close glyph list over 'GSUB'"):
|
|
||||||
log.info(
|
|
||||||
"Closing glyph list over 'GSUB': %d glyphs before", len(self.glyphs)
|
|
||||||
)
|
|
||||||
log.glyphs(self.glyphs, font=font)
|
|
||||||
font["GSUB"].closure_glyphs(self)
|
|
||||||
self.glyphs.intersection_update(realGlyphs)
|
|
||||||
log.info(
|
|
||||||
"Closed glyph list over 'GSUB': %d glyphs after", len(self.glyphs)
|
|
||||||
)
|
|
||||||
log.glyphs(self.glyphs, font=font)
|
|
||||||
self.glyphs_gsubed = frozenset(self.glyphs)
|
|
||||||
|
|
||||||
if "MATH" in font:
|
if "MATH" in font:
|
||||||
with timer("close glyph list over 'MATH'"):
|
with timer("close glyph list over 'MATH'"):
|
||||||
log.info(
|
log.info(
|
||||||
@ -3346,6 +3332,20 @@ class Subsetter(object):
|
|||||||
log.glyphs(self.glyphs, font=font)
|
log.glyphs(self.glyphs, font=font)
|
||||||
self.glyphs_mathed = frozenset(self.glyphs)
|
self.glyphs_mathed = frozenset(self.glyphs)
|
||||||
|
|
||||||
|
if self.options.layout_closure and "GSUB" in font:
|
||||||
|
with timer("close glyph list over 'GSUB'"):
|
||||||
|
log.info(
|
||||||
|
"Closing glyph list over 'GSUB': %d glyphs before", len(self.glyphs)
|
||||||
|
)
|
||||||
|
log.glyphs(self.glyphs, font=font)
|
||||||
|
font["GSUB"].closure_glyphs(self)
|
||||||
|
self.glyphs.intersection_update(realGlyphs)
|
||||||
|
log.info(
|
||||||
|
"Closed glyph list over 'GSUB': %d glyphs after", len(self.glyphs)
|
||||||
|
)
|
||||||
|
log.glyphs(self.glyphs, font=font)
|
||||||
|
self.glyphs_gsubed = frozenset(self.glyphs)
|
||||||
|
|
||||||
for table in ("COLR", "bsln"):
|
for table in ("COLR", "bsln"):
|
||||||
if table in font:
|
if table in font:
|
||||||
with timer("close glyph list over '%s'" % table):
|
with timer("close glyph list over '%s'" % table):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user