Precise Glyph Positioning using Anchors

Unable to use the Anchor to position glyphs precisely when using Sanskrit language Devanagari font.

1st glyph = क = unicode U+0915 = ka-deva
2nd glyph = ी = unicode U+0940 = vowelsignii-deva
3rd glyph = unicode U+1CDA = vedictonedoublesvaritacomb
Result = the third glyph intersects the second glyph. (incorrect position of U+1CDA)

We have defined base Anchor on 2nd glyph, and mark Anchor on 3rd glyph.
Also written the code in the script using Open Type Designer.

Tried various values of Anchor (x,y), However there is no change in 3rd glyph placement position.
What are we missing?
anchorQuery.jpg

What happens if you move the anchor on the 3rd glyph to the left?

If you can attach the project file it may be easier for others to spot what is wrong.

Nothing happens.

No matter what we do to the Anchor. It always intersects - overlaps.
anchorQuery2.jpg

Your input consists of a base and two marks. Since you want to apply a mark to base rule between base and second mark, you will need to tell it to ignore the mark in between.

“Process Marks” to “None”.
no change in result.

Process Marks to Top Mark.
no effect either.

did not work for any setting.

Send me the font project and I will look into it.

have attached our working project file, wherein we are unable to position a top mark wrt a base glyph.
actualOutput.jpg
Needed Output is that the mark should not intersect the base glyph.
Please indicate how to achieve this?
Advaita Sanskrit.fcp (166 KB)

This one works with:
/ii-deva/vedictonedoublesvaritacomb
Devanagari.png
Advaita Sanskrit2.fcp (166 KB)
I had to set Process Marks to All and Script to Devanagari v2.

We are unable to do it.

It seems to work well in the Preview window of fontcreator.

However when we type in Word, it does not work.
Microsoft_Word_Output.jpg
What are we missing?
fontcreator_Output.jpg

I do not know why it fails in Word.

I have only tested it in the Web Font Test which seems to work just fine.

Respected Erwin,
Many Thanks for looking into it.

We found the solution. It is working fine in Microsoft Office 2016 and 2019 versions.
Does not work in earlier versions of Word.
This means that the Uniscribe engine for Open Type Designer in earlier editions
does not have the latest Unicode character blocks that came after 2015.

It also works in Libre Office Writer version 6.4.6.2 with the Sanskrit language pack.
YesItWorks.jpg

That is good news, thank you for letting us know!