OpenType rules

Primary tabs

4 posts / 0 new
Last post
G. Wenli's picture
Offline
Joined: 9 Feb 2005 - 4:17pm
OpenType rules
0

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

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

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.

G. Wenli's picture
Offline
Joined: 9 Feb 2005 - 4:17pm
0

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

paul d hunt's picture
Offline
Joined: 15 Jan 2004 - 11:00am
0

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.