I have:
- 2 classes: base glyphs & marks
- mark positioning: base + mark (using the 2 classes)
- chaining context substitution: backtrack (base), input (mark), substitution table (2 other marks)
What I'm trying to achieve is substitute mark A with mark B if a certain base is used. Separately,
- mark attachment with a defined anchor works:
- substitution works:
BUT using substitution plus mark attachment with a defined anchor doesn't. When mark A is substituted with B, B is added to the right side of base ignoring the anchor (e.g. img04a above, or img04b from Word):
Interestingly, the preview in the OpenType Designer window shows them working correctly at the same time:
Is there something I can do to make it work properly?
Thank you for your help,
Ninna
chaining context substitution - anchor problem
-
- Moderator
- Posts: 11155
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: chaining context substitution - anchor problem
Not all shaping engines behave the same, so also try if it works in a Web Font test.
Re: chaining context substitution - anchor problem
Thank you for your reply.
What I couldn't figure out was why FC's OT Designer preview showed it correctly, while FC's Test Font preview didn't.
Anyway, I feel silly to say the fault was mine, but maybe posting it here will help someone else in the future: the problem was caused by & solved (in the case of substitution marks):
Glyph Properties > (More>>>) > Extra Info > "Automatic" (Mark), which should have been "Mark", not "Automatic".
What I couldn't figure out was why FC's OT Designer preview showed it correctly, while FC's Test Font preview didn't.
Anyway, I feel silly to say the fault was mine, but maybe posting it here will help someone else in the future: the problem was caused by & solved (in the case of substitution marks):
Glyph Properties > (More>>>) > Extra Info > "Automatic" (Mark), which should have been "Mark", not "Automatic".
-
- Moderator
- Posts: 11155
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: chaining context substitution - anchor problem
The OT Designer preview uses our own shaping engine. Test Font preview uses one that comes with Windows. And what the Web Font test uses depends on the web browser.
I am glad to know the problem is solved, although both Automatic (Mark) and Mark should produce the same font.NinnaD wrote: ↑Mon Feb 15, 2021 10:14 pm Anyway, I feel silly to say the fault was mine, but maybe posting it here will help someone else in the future: the problem was caused by & solved (in the case of substitution marks):
Glyph Properties > (More>>>) > Extra Info > "Automatic" (Mark), which should have been "Mark", not "Automatic".
Re: chaining context substitution - anchor problem
It didn't in Word 365, so maybe there is some issue there. I'm just happy I got it to work