Precise Glyph Positioning using Anchors

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
ashwini
Posts: 15
Joined: Fri Sep 04, 2020 9:20 am

Precise Glyph Positioning using Anchors

Post by ashwini »

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
anchorQuery.jpg (57.57 KiB) Viewed 3997 times
Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 9878
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Precise Glyph Positioning using Anchors

Post by Bhikkhu Pesala »

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.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
ashwini
Posts: 15
Joined: Fri Sep 04, 2020 9:20 am

Re: Precise Glyph Positioning using Anchors

Post by ashwini »

Nothing happens.

No matter what we do to the Anchor. It always intersects - overlaps.
Attachments
anchorQuery2.jpg
anchorQuery2.jpg (125.52 KiB) Viewed 3992 times
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Precise Glyph Positioning using Anchors

Post by Erwin Denissen »

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.
Erwin Denissen
High-Logic
Proven Font Technology
ashwini
Posts: 15
Joined: Fri Sep 04, 2020 9:20 am

Re: Precise Glyph Positioning using Anchors

Post by ashwini »

"Process Marks" to "None".
no change in result.

Process Marks to Top Mark.
no effect either.

did not work for any setting.
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Precise Glyph Positioning using Anchors

Post by Erwin Denissen »

Send me the font project and I will look into it.
Erwin Denissen
High-Logic
Proven Font Technology
ashwini
Posts: 15
Joined: Fri Sep 04, 2020 9:20 am

Re: Precise Glyph Positioning using Anchors

Post by ashwini »

have attached our working project file, wherein we are unable to position a top mark wrt a base glyph.
actualOutput.jpg
actualOutput.jpg (65.05 KiB) Viewed 3922 times
Needed Output is that the mark should not intersect the base glyph.
Please indicate how to achieve this?
Attachments
Advaita Sanskrit.fcp
(166.19 KiB) Downloaded 190 times
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Precise Glyph Positioning using Anchors

Post by Erwin Denissen »

This one works with:
/ii-deva/vedictonedoublesvaritacomb
Devanagari.png
Devanagari.png (153.54 KiB) Viewed 3919 times
Advaita Sanskrit2.fcp
(166.03 KiB) Downloaded 211 times
I had to set Process Marks to All and Script to Devanagari v2.
Erwin Denissen
High-Logic
Proven Font Technology
ashwini
Posts: 15
Joined: Fri Sep 04, 2020 9:20 am

Re: Precise Glyph Positioning using Anchors

Post by ashwini »

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
Microsoft_Word_Output.jpg (9.27 KiB) Viewed 3913 times
What are we missing?
Attachments
fontcreator_Output.jpg
fontcreator_Output.jpg (199.94 KiB) Viewed 3913 times
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Precise Glyph Positioning using Anchors

Post by Erwin Denissen »

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.
Erwin Denissen
High-Logic
Proven Font Technology
ashwini
Posts: 15
Joined: Fri Sep 04, 2020 9:20 am

Re: Precise Glyph Positioning using Anchors

Post by ashwini »

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
YesItWorks.jpg (12.84 KiB) Viewed 3855 times
Erwin Denissen
Moderator
Moderator
Posts: 11160
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Precise Glyph Positioning using Anchors

Post by Erwin Denissen »

That is good news, thank you for letting us know!
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply