OpenType rules

gena_wenli's picture

Hello!
I'm Gena Wenli, and I'm new to Typophile forums (but not Typophile altogether). I have a newbie question: If I'm making a font, how do I set up some OpenType rules that, say, convert the B and Y glyphs to a third that has a ligature if they are next to each other. Can I do this in FontLab (which I have)? Please correct my terminology if it is wrong! Thanks!



G

twardoch's picture

Gena,

that's easily done in FontLab 4.6. If you have your "B" glyph and your "Y" glyph, add a third one that is named "B_Y". Then, open Window / OpenType Panel and click on the "+" button in the panel. In the top text field of the OpenType panel, put the following text:

feature liga {
sub B Y by B_Y;
} liga;

Then click on the Compile button on the panel, open Window / Preview Panel, switch to OpenType Features on the panel and test your font. If everything is fine, generate your font in OpenType-CFF format.

I recommend getting the book "Learn FontLab Fast" by Leslie Cabarga (http://www.logofontandlettering.com/ ) which includes some more tips on creating OpenType fonts. There are also more tips in the FontLab manual.

Regards,
Adam Twardoch
Fontlab Ltd.

gena_wenli's picture

Wow! Thanks so much! One more question: if I want to do the same thing with lowercase glyphs, do I just type the same rule but with lowercase? Will that work? Thanks!



G

pablohoney77's picture

yes, you can follow the same format as above for example:

feature liga {
sub f f i by ffi;
} liga;

will give you your standard ffi ligature, but you can substitute any letters you want to combine. read the section of the FontLab manual on OT programing, I thought it was fairly straightforward and easy to understand.

Syndicate content Syndicate content