Is Replace Feature broken in 2.6.1(1230)

Hi,

I’m trying to use the Replace Feature custom parameter to swap contextual GPOS code (Indic ABVM feature) and it doesn’t seem to be working.

Note: I’m using the # Automatic Code End keywords (but omitting this doesn’t change the result)

in the ABVM feature I have the following code:

# Automatic Code End
lookup contextual_positioning {
pos iMatra-deva base j_ja-deva <anchor 250 250> mark @mark_top';
} contextual_positioning ;

in the Replace Feature parameter of a lighter instance I have:

abvm;
# Automatic Code End
lookup contextual_positioning {
pos iMatra-deva base j_ja-deva <anchor 300 300> mark @mark_top';
} contextual_positioning ;

I’ve tried using Wei’s method of using external .fea files and using the Replace Prefix and include options but this puts the lookup in the beginning (thus getting overwritten by the auto-generated ABVM code) despite me using # Automatic Code End. Also, for the include method I need to specify markClass which may be affecting the order?

Any help is appreciated! Many thanks in advance :slight_smile:

EDIT: feature code Syntax
EDIT: More context

The class names in the code sample are lacking the @ at the beginning.

Which class names? base_glyphs and more_base_glyphs is used as placeholder for glyphs names.

I’ve edited it to make it more obvious.

Ah, I see. Can you:

  1. try in build 1252?
  2. send me a file that shows the unwanted behavior?

Sure, sending it right away.