Contextual Anchor Issue


I’m having this problem with Contextual Anchors, where they don’t seem to work at all.

Below is the screenshot of my setup. I’m using Glyphs 3 (3200).

I want the botBelow in beh-ar.init to move down when it is followed by reh-ar.
I have defined the contextual anchor in behDotless-ar.init
and placed reh-ar * in the context.

It doesn’t seem to work for me.

Here is what it look like in InDesign (latest version).

The glyphs file is also attached.
Square Kufi Experiment.glyphs (32.1 KB)

System details:
MB Pro 2017.
MacOS: Ventura 13.4.
Processor: 2.9 GHz Quad-Core Intel Core i7.

This is was previously discussed here as well.

Thanks and regards.

Then you need to first decompose the beh. The contextual mark positioning is applied when the text is rendered and then the dot in the beh is a fixed part of the glyph.

Thanks for the reply.

Can you please suggest how do I approach it?
As the concept is not clear to me.


In the ccmp feature add something like this:

sub beh-ar by behDotless-ar dotbelow-ar;


Will try that at the earliest.
Do I need to do anything else?


I placed sub beh-ar.init by behDotless-ar.init dotbelow-ar; in CCMP as you suggested.

Still not getting the desired position of dotbelow-ar of beh-ar.init when it is typed after reh-ar.
What am I missing?


when the ccmp is applied, there are no .init formes, yet. So you only need to decompose the default glyphs (the ones without a suffix).

Thanks for the reply.

I decomposed the beh-ar as you suggested.

then I figured out below code to attach dotbelow-ar to behDotless-ar.init:

markClass [dotbelow-ar] <anchor 50 150> @bottom;
pos base behDotless-ar.init <anchor 150 0> mark @bottom;

Please help with the contextual part.
Where dotbelow-ar of beh-ar.init moves down if it is preceded by reh-ar.


You don’t need to deal with the markClass and such. That is done automatically.

Make sure that the dotbelow-ar is set to Mark, Nonspacing and that it has a _bottom anchor.

Then add the context to the *bottom anchor like this

[reh-ar reh-ar.fina] *

Thanks @GeorgSeifert for the tip.

Will try it.

Is there a tutorial anywhere on contextual anchors? It’s the first time I heard this term.

They are described in the Handbook:

1 Like


this does not seem to work for me.

where do I put this contextual anchor?