Yes, I know, I have an old and outdated version of Font Creator. Still, I wonder if the following is an old (current) bug, or just something I’m doing wrong. In the code below, rendering appears correct in the OTD window. However, web browser testing reveals an error. According to the following code, an entry of -qqqq should reveal -Qq. Yet, in a web browser, I require -qqqqq (5 q’s) to get -Qq.
My ligature lookup has two subs: one for 3 q’s and one for 4 q’s. The ChainingContext is only seeking one of those rules (3 q’s). Why is the web browser test looking up 4 q’s anyway? I also tested this in a text app with the same resulting error.
Appreciate your thoughts.
script latn {
feature StandardLigatures1;
}
feature StandardLigatures1 liga {
lookup “ChainingContext (qqq for Q)”;
}
lookup “ChainingContext (qqq for Q)” {
context (hyphen) q q q;
sub 0 “Ligature1 (qqq for Q)”;
}
lookup “Ligature1 (qqq for Q)” {
sub q q q q → Q;
sub q q q → Q;
}