Mobile app version of vmapp.org
Login or Join
Margaret771

: OpenType Features - Adaptable typefaces I have a typeface I've developed that comes in two variations, one spans horizontally whilst the other vertically. At the moment they sit as two OTFs.

@Margaret771

Posted in: #Fonts #Opentype #Script #Typefaces #Typography

I have a typeface I've developed that comes in two variations, one spans horizontally whilst the other vertically. At the moment they sit as two OTFs. What I would like to do is create an OpenType feature that would allow for variations between the horizontal and vertical in the same usage. E.G. I type a word, the first letter is vertical, the second horizontal, the third vertical etc etc.

The reason I ask this is to avoid having 4 separate faces which you would have to switch between to get the same effect, rather than an on/off option. What level of scripting is possible inside OpenType to do this? Is is possible or am I still looking at having a set of 4 fonts with which to implement this with.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Margaret771

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh909

I haven’t tested this, but I this should be possible with contextual chaining substitutions. You roughly need to do the following (the details probably depend on the program you are using), taking the alternation between vertical and horizontal as an example:


Make your default letters vertical.
Create a single-substitution feature that replaces each vertical letter with its horizontal analogue (V→H). This feature can also be used to switch every letter to vertical. It should not be activated by default.
Create a contextual-chaining-substitution feature with two back classes: one containing all vertical letters (BV) and one containing everything else. If the back class (i.e., the preciding letter) is BV, apply the V→H feature to the current letter.


This way, the first letter of a word is untouched (because it is not preceded by a vertical letter) and thus vertical. The second letter is preceded by a vertical letter, thus the back class is BV and V→H is applied to this letter and it becomes horizontal. For the third letter, the back class is everything else again and thus it does not get transformed. And so forth …

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme