Skip to content

Commit

Permalink
Test also use of & in contextual anchor context
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Jul 31, 2023
1 parent 0a8daed commit c66175b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/data/ContextualAnchors.glyphs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ GPOS_Context = "reh-ar *";
name = "*bottom.twodots";
pos = (25,-126);
userData = {
GPOS_Context = "lookupflag UseMarrkFilteringSet [twodotshorizontalbelow]; reh-ar *";
GPOS_Context = "lookupflag UseMarrkFilteringSet [twodotshorizontalbelow]; reh-ar * behDotess-ar.medi &";
};
},
{
Expand Down Expand Up @@ -618,7 +618,7 @@ GPOS_Context = "reh-ar *";
name = "*bottom.twodots";
pos = (55,-200);
userData = {
GPOS_Context = "lookupflag UseMarrkFilteringSet [twodotshorizontalbelow]; reh-ar *";
GPOS_Context = "lookupflag UseMarrkFilteringSet [twodotshorizontalbelow]; reh-ar * behDotess-ar.medi &";
};
},
{
Expand Down Expand Up @@ -656,7 +656,7 @@ GPOS_Context = "reh-ar *";
name = "*bottom.twodots";
pos = (105,-226);
userData = {
GPOS_Context = "lookupflag UseMarrkFilteringSet [twodotshorizontalbelow]; reh-ar *";
GPOS_Context = "lookupflag UseMarrkFilteringSet [twodotshorizontalbelow]; reh-ar * behDotess-ar.medi &";
};
},
{
Expand Down
5 changes: 3 additions & 2 deletions tests/feature_writers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ def test_contextual_anchors(datadir):
assert str(lookup) == (
"lookup ContextualMarkDispatch_0 {\n"
" lookupflag UseMarrkFilteringSet [twodotshorizontalbelow];\n"
" # reh-ar *\n"
" pos reh-ar behDotless-ar.init [dotbelow-ar twodotshorizontalbelow-ar]'"
" # reh-ar * behDotess-ar.medi &\n"
" pos reh-ar behDotless-ar.init behDotess-ar.medi"
" [dotbelow-ar twodotshorizontalbelow-ar]'"
" lookup ContextualMark_0; # behDotless-ar.init/*bottom.twodots\n"
"} ContextualMarkDispatch_0;\n"
)
Expand Down

0 comments on commit c66175b

Please sign in to comment.