5

I have previously received help with getting the fi and fl ligatures working with the Berling font and now I found myself trying to do the same with the Gill Alt One MT font. The same approach does not seem to be working. With:

languagesystem DFLT dflt ;
languagesystem latn dflt ;

feature kern {
pos f h 500;
} kern;

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

I get:

!LuaTeX error (file ./gillsans.TTF): Invalid glyph index (gid 251)
 ==> Fatal error occurred, no output PDF file produced!

It is either the fi or fl but gid 251 is strange. Assuming that gid stands for glyph index I can't understand where 251 is comming from. The glyphs are at position 109 and 110 just as was the case for the Berling font.

I have also tried Script=Default in the setmainfont call which seems to just have the effect that the feature file is ignored cause the kerning stops working as well. Once again I am at a loss. What else can I try?

2
+50

First : I am surprised that the file name of Gill Alt One MT could be simply gillsans.ttf…

Second : The names of the f + i and f + l ligatures are not always f_i and f_l. In an Monotype font, they may be fi and fl. So, you should try :

feature liga {
sub f i by fi;
sub f l by fl;
} liga;

Or open the TTF file in fontforge (or run ttf2afm on it) and check the names.

  • Yea the font name has changed. I had some trouble with font name at some stage and changed it... Sorry about that. – jonalv Jul 25 '13 at 12:23
  • yea fi and fl worked. I didn't manage to find the glyphs in FontForge though. There are so many and scrolling through all takes forever... :( – jonalv Jul 25 '13 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.