creatin ligatures with fontlab

kasem3's picture

hi there,
i'm actually creatin a new font and i want to create ligatures in the font. but i've problems with it. i am able to create ligatures as new characters but they doesn't work in the preview panel, not as fontlab data and neither as opentype or truetype. can anyone help me, what's my problem.
thx

k.l.'s picture

Glyphs are just glyphs, you have to tell the font which substitutions to perform:
In the OpenType panel, add a new feature (click the plus in the bottom left part of the panel) which creates a new empty feature (displayed in the top right part). There, enter something like:

feature liga {
   sub f i by f_i;
   sub f l by f_l;
   [etc]
} liga;

which tells the OpenType interpreter to replace single "f" and "i" by the ligature glyph named "f_i" (or "fi" if you call it like that).
You can add other substitution commands by the same scheme.

Karsten

Nick Cooke's picture

Also, make sure that you have more than one feature; eg. kern, or it won't work when generated.

Nick Cooke

thierry blancpain's picture

is it easily possible to have ligatures that involve three letters? i made a www-ligature for my grotesk in the making and remember reading here about not being able to make normal ligatures that involve three letters.

paul d hunt's picture

is it easily possible to have ligatures that involve three letters?

yes.

kasem3's picture

thx for your replies. i'll try it.

thierry blancpain's picture

three letter ligatures:

i'd go like that with it?

feature liga {
sub w w w by lig_www;
} liga;

(if the name of the glyph is lig_www)

on another note: if i do a www-lig, wouldnt it be good to make it "www.", because then i can make sure that there's not a strange word in a language that has three w's following each other and getting replaced - also, makes kerning easier.

k.l.'s picture

Since glyph names still matter, you better name the glyph "w_w_w" so e.g. Acrobat knows it is a ligature and must be decomposed to w w w if you copy/paste text from a PDF. So:
   sub w w w by w_w_w;

Or, if you like:
   sub w w w period by w_w_w_period;

Also, you can use contextual substitution:
   sub w' w' w' period by w_w_w;
So w w w will be substituted only if period follows, but the period itself remains.
(You could put w_w_w into your w kerning class. Might be that XPress7 ignores this then, I don't know, you have to try.)

Karsten

twardoch's picture

> Or, if you like:
> sub w w w period by w_w_w_period;
> Also, you can use contextual substitution:
> sub w’ w’ w’ period by w_w_w;
> So w w w will be substituted only if period follows,
> but the period itself remains.

But note that not all OpenType-savvy applications support contextual substitutions. The contextual ligature will work in InDesign, Illustrator, Photoshop, QuarkXPress 7 but will not work in Apple TextEdit, Keynote or Pages (under Mac OS X 10.4), while the plain ligature will work in all of the above.

Adam

Syndicate content Syndicate content