Skip to content

Commit

Permalink
add repro for clipped clip-box with reflection
Browse files Browse the repository at this point in the history
reproduces #335
  • Loading branch information
anthrotype committed Sep 20, 2021
1 parent f556c88 commit 06eb86a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/flipped_reused_shape.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions tests/write_font_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,16 @@ def test_write_font_binary(svgs, expected_ttx, config_overrides):
{},
None,
),
(
# this SVG contains two triangles flipped vertically around the middle,
# with each triangle's bbox half-viewbox wide; the union of their bboxes
# encompasses the full extent of the upem/viewbox.
# Reflection may play tricks if the bbox doesn't get normalized, cf.
# https://github.com/googlefonts/nanoemoji/issues/335
("flipped_reused_shape.svg",),
{},
(0, 0, 100, 100),
),
],
)
def test_ufo_color_base_glyph_bounds(svgs, config_overrides, expected):
Expand Down

0 comments on commit 06eb86a

Please sign in to comment.