random or simulating random feature

deniserebryakov's picture

How OTF code should look like with description of random or simulating random feature?

For example:
I have three a-glyphs. And I want to view all three a-glyphs in the word “panorama”.

feature calt {

....???.....

} calt;

deniserebryakov's picture

How should I change my OTF code to get the line “I need“ (image link http://clip2net.com/s/1qAvm)?

My code:

@letter = [b c d e f g h i j k l m n o p q r s t u v w x y z space];
@letter1 = [a c d e f g h i j k l m n o p q r s t u v w x y z space];
@letter2 = [a b d e f g h i j k l m n o p q r s t u v w x y z space];

feature calt {
lookup rotate {
sub a a' by a.calt1;
sub a.calt1 a' by a.calt2;
sub a.calt2 a' by a;
sub a @letter a' by a.calt1;
sub a.calt1 @letter a' by a.calt2;
sub a.calt2 @letter a' by a;
sub a @letter @letter a' by a.calt1;
sub a.calt1 @letter @letter a' by a.calt2;
sub a.calt2 @letter @letter a' by a;
sub a @letter @letter @letter a' by a.calt1;
sub a.calt1 @letter @letter @letter a' by a.calt2;
sub a.calt2 @letter @letter @letter a' by a;
sub a @letter @letter @letter @letter a' by a.calt1;
sub a.calt1 @letter @letter @letter @letter a' by a.calt2;
sub a.calt2 @letter @letter @letter @letter a' by a;
sub a @letter @letter @letter @letter @letter a' by a.calt1;
sub a.calt1 @letter @letter @letter @letter @letter a' by a.calt2;
sub a.calt2 @letter @letter @letter @letter @letter a' by a;
sub a @letter @letter @letter @letter @letter @letter a' by a.calt1;
sub a.calt1 @letter @letter @letter @letter @letter @letter a' by a.calt2;
sub a.calt2 @letter @letter @letter @letter @letter @letter a' by a;

sub b b' by b.calt1;
sub b.calt1 b' by b.calt2;
sub b.calt2 b' by b;
sub b @letter1 b' by b.calt1;
sub b.calt1 @letter1 b' by b.calt2;
sub b.calt2 @letter1 b' by b;
sub b @letter1 @letter1 b' by b.calt1;
sub b.calt1 @letter1 @letter1 b' by b.calt2;
sub b.calt2 @letter1 @letter1 b' by b;
sub b @letter1 @letter1 @letter1 b' by b.calt1;
sub b.calt1 @letter1 @letter1 @letter1 b' by b.calt2;
sub b.calt2 @letter1 @letter1 @letter1 b' by b;
sub b @letter1 @letter1 @letter1 @letter1 b' by b.calt1;
sub b.calt1 @letter1 @letter1 @letter1 @letter1 b' by b.calt2;
sub b.calt2 @letter1 @letter1 @letter1 @letter1 b' by b;
sub b @letter1 @letter1 @letter1 @letter1 @letter1 b' by b.calt1;
sub b.calt1 @letter1 @letter1 @letter1 @letter1 @letter1 b' by b.calt2;
sub b.calt2 @letter1 @letter1 @letter1 @letter1 @letter1 b' by b;
sub b @letter1 @letter1 @letter1 @letter1 @letter1 @letter1 b' by b.calt1;
sub b.calt1 @letter1 @letter1 @letter1 @letter1 @letter1 @letter1 b' by b.calt2;
sub b.calt2 @letter1 @letter1 @letter1 @letter1 @letter1 @letter1 b' by b;

sub c c' by c.calt1;
sub c.calt1 c' by c.calt2;
sub c.calt2 c' by c;
sub c @letter2 c' by c.calt1;
sub c.calt1 @letter2 c' by c.calt2;
sub c.calt2 @letter2 c' by c;
sub c @letter2 @letter2 c' by c.calt1;
sub c.calt1 @letter2 @letter2 c' by c.calt2;
sub c.calt2 @letter2 @letter2 c' by c;
sub c @letter2 @letter2 @letter c' by c.calt1;
sub c.calt1 @letter2 @letter2 @letter2 c' by c.calt2;
sub c.calt2 @letter2 @letter2 @letter2 c' by c;
sub c @letter2 @letter2 @letter2 @letter2 c' by c.calt1;
sub c.calt1 @letter2 @letter2 @letter2 @letter2 c' by c.calt2;
sub c.calt2 @letter2 @letter2 @letter2 @letter2 c' by c;
sub c @letter2 @letter2 @letter2 @letter2 @letter2 c' by c.calt1;
sub c.calt1 @letter2 @letter2 @letter2 @letter2 @letter2 c' by c.calt2;
sub c.calt2 @letter2 @letter2 @letter2 @letter2 @letter2 c' by c;
sub c @letter2 @letter2 @letter2 @letter2 @letter2 @letter2 c' by c.calt1;
sub c.calt1 @letter2 @letter2 @letter2 @letter2 @letter2 @letter2 c' by c.calt2;
sub c.calt2 @letter2 @letter2 @letter2 @letter2 @letter2 @letter2 c' by c;
} rotate;
} calt;

Syndicate content Syndicate content