Move mark in context : feature mark/ mkmk

Hi, I have trying to move mark in the context :

if maitri-thai followed letter 1 and letter2 move to the right in certain value

and I want the change to apply only in the darker weight, and here I wrote on Mark feature section :

#ifdef VARIABLE
# Automatic Code
condition 130 < wght;
lookup movemark {
	script thai;
	pos saraAiMaimalai-thai poPla-thai maiTri-thai.narrow' <-2000 0 0 0> ;
} movemark; 
#endif

Noted that it’s the extreme value I put in here to see the change. It seems like not only that it didn’t pick up the condition but also apply on every situation too. I’m not sure how to fix this.

Any suggestion anyone?

Many thanks in advance! :folded_hands:

The code you wrote only applies to variable fonts. Not for static instances.
You can add a “Add Feature” parameter in the darker instances with that pos rule (without the comments and conditions)

1 Like

Thank you for your reply! But I tried but it doesn’t work — I still got the same result :smiling_face_with_tear:

I applied this in only one instance, but after export it gave the same result as the image above :

Hi again, is I’m sorry but it doesn’t work in both variable font or in static font. Do you have any suggestion where else should I look into? :folded_hands:

As far as I can tell this works for me. Except that in the last screenshot you are missing a ' after the maiTri-thai.narrow. And can you check if the maiTri-thai.narrow is actually substituted in by the time the make feature is applied?

If you can’t figure it out, you can send me the file (e.g. in a private message).

I did the adjustment, still didn’t work. So I sent the message :slight_smile: