using brackets in feature definitions

alex scholing's picture

hi all,

i’m working on a font that contains a ballot box (uni2610) and a ballot box with checkmark (uni2611). to access these i’m using the dlig feature where the string ‘[]’ is replaced by uni2610 and ‘[x]’ by 2611. like so:

sub [ x ] by uni2611
sub [ ] by uni2610

the problem: brackets are part of the feature language syntax and therefore mean something else when used in feature definitions. is there a way to still be able to use them as i want to use them?

thanks,
alex

alex scholing's picture

ah sorry, i posted too quickly.
i solved it already by using this:

sub bracketleft x bracketright by uni2611
sub bracketleft space bracketright by uni2610

alex

Syndicate content Syndicate content