Crossing the t's

Frode Bo Helland's picture

I have an alternate "t" with a rather long raised crossbar and another one with no crossbar at all. Is there some smart way I can create an opentype feature that let's me substitute my regular t's with these two in a word like this: txxxxt (x = any given lowercase letter)

Nick Shinn's picture

Would this work?

First create a class of lowercase glyphs, @x.

sub t @x @x @x @x t' by t.nobar ;

sub t' @x @x @x @x by t.highbar ;

agisaak's picture

Do you mean you want this to occur when exactly four lowercase characters occur between the t's, or do you intend this to work with an arbitrary number of characters separating the two t's?


Frode Bo Helland's picture

Thanks Nick. André: Arbitraty, but I’ll probably have to have a maximum number, and also something that would work for a word like “retrett”.

Bendy's picture

Sounds difficult, as the intervening letters could be quite different widths.

Nick, does your second line need to say t.nobar rather than

Frode Bo Helland's picture

This is a handwritten script. The crossbars will be rather freeflowing, so I’m ok with different widths.

Syndicate content Syndicate content