Skip to content

Commit

Permalink
Merge pull request #842 from googlefonts/fix-overzealous-layer-synthesis
Browse files Browse the repository at this point in the history
Only add box to box list if there's actually a box
  • Loading branch information
anthrotype authored Dec 19, 2022
2 parents 1727e73 + 2530d93 commit 74aefb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Lib/glyphsLib/builder/bracket_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,13 @@ def find_component_use(self):
if my_bracket_layers != components_bracket_layers:
# Find what we need to add, and make them hashable
they_have = set(
tuple(x.items()) for x in components_bracket_layers
tuple(x.items())
for x in components_bracket_layers
if x.items()
)
i_have = set(
tuple(x.items()) for x in my_bracket_layers if x.items()
)
i_have = set(tuple(x.items()) for x in my_bracket_layers)
needed = they_have - i_have
if needed:
problematic_glyphs[(glyph_name, master)] |= needed
Expand Down

0 comments on commit 74aefb3

Please sign in to comment.