aLtErNaTiNg CaSe?

oldnick's picture

I received a request from an OEM to resurrect one of my old freeware fonts, Pleasingly Plump NF, in 21st-century TrueType format. The font, originally designed in 1999, had an uppercase that leaned to the left and a lowercase that leaned to the right. By typing alternating upper- and lowercase letters, the user could add a decided bounce to the type. Given the advances in OpenType programming, it would seem that there ought to be some calt code that could do the heavy lifting of double-clutching the shift key...but perhaps not. Has anyone found an elegant solution to this problem?

Nick Shinn's picture

Make a class "All"
These will be the default characters, leaning right.
Make a class "Allalt"
These will be the corresponding glyphs, leaning the other way.

feature calt {
sub @All @All' by @Allalt ;
} calt;

This replaces every instance of a member of "All" following itself (marked with '), by the corresponding alternate.

oldnick's picture

Many thanks, Nick: works like a charm!

Syndicate content Syndicate content