Skip to content

Commit

Permalink
invert anchor order to trigger anchor_test.py fail
Browse files Browse the repository at this point in the history
In anchor_propagation.py, we have code to adjust propagated anchor position when a mark component is anchored to a specific named anchor as specified in the ComponentInfo lib key.
The code indiscriminately applies the adjustment in a for loop, without checking the anchor names match the expected component anchor.
I modified one of the AnchorPropagation.glyphs test file by changing the order of anchors in a mark glyph used as component in order to trigger a failure. Will follow up with a fix
  • Loading branch information
anthrotype committed Jan 30, 2024
1 parent d345113 commit d4f7aeb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/data/AnchorPropagation.glyphs
Original file line number Diff line number Diff line change
Expand Up @@ -1371,13 +1371,13 @@ layers = (
{
anchors = (
{
name = top;
position = "{129, 252}";
},
{
name = _top;
position = "{130, -70}";
},
{
name = top;
position = "{129, 252}";
}
);
components = (
{
Expand Down

0 comments on commit d4f7aeb

Please sign in to comment.