Bug or Feature (VOLT)

Atif's picture

I have two lookups in Volt named

1st Feature
markc\positioningA (Anchor Attachment)

Position First Position Second
some rules here
Context before | context After
| A B

2nd Feature
markc\PositioningB (Anchor Attachment)
Position First Position Second
some rules here
Context before | context After
C | A B

The problem is, only 1st feature do positioning and 2nd feature do not. Even though they have different context.

Is it a bug or feature ?

Thanks and regards,
Atif

sergeym's picture

Your contexts are different, but second one is more detailed version of the first. Rules in a single lookup are tested in order they appear in project. If some rule matches context, specified action is executed and following rules are skipped. Because of that, rules setting more detailed context should be placed in front of others. For example, if your font contains ff and ffi ligatres, ffi should be listed first to work correctly. In your case, you should reorder markc\PositioningB before markc\PositioningA.

Thanks,
Sergey

Syndicate content Syndicate content