Calt on fontlab

elena's picture

Bonjour,

I'm working on an experimental font for titling, using Fontlab with the calt feature (ot).
Please have a look to the attached files to see how i'm trying to do... "Abracadabra" version is less important, it will be the result of a random feature.
To obtain the effect of deformation that you can see in the "colonel" exemple, I've created 5 sizes in the same font. First I digit my word with lowercases, then I choose one letter (in the middle of the word) and I change it in capitals (the biggest size).
I've created five classes for each sizes (from the very small to the biggest : minuscules, petites, moyennes, grandes, capitales), and I've tried to apply calt feature to make contextual substitutions.
The code :

feature calt {
sub @minuscules' @capitales by @grandes; #first level of sub.
sub @capitales @minuscules' by @grandes;
sub @minuscules' @grandes by @moyennes; #second level of sub.
sub @grandes @minuscules' by @moyennes;
sub @minuscules' @moyennes by @petites;
sub @moyennes @minuscules' by @petites;
} calt;

The problem is that the program consider only the first substitution. The second and the third substitution refer to the first substitution, but it doesn't works because everything is in the same feature. I don't know if it's quite clear for you, it's so difficult to explain in my bad english... My question is : do I need to put some lookups to make that the first level of substitution takes effect, so the second will may refers to...

Thank you so much for your patient attention

E.A.colonelabracadabra

ebensorkin's picture

I just found this. Apparently everybody else missed it too. As it happens I am looking for similar info today.

Henyk's picture

Try this:

feature calt {

lookup calt1 {
sub @minuscules' @capitales by @grandes; #first level of sub.
sub @capitales @minuscules' by @grandes;
} calt1;

lookup calt2 {
sub @minuscules' @grandes by @moyennes; #second level of sub.
sub @grandes @minuscules' by @moyennes;
} calt2;

lookup calt3 {
sub @minuscules' @moyennes by @petites;
sub @moyennes @minuscules' by @petites;
} calt3;

} calt;

Syndicate content Syndicate content