Can't preview dlig

Raphael Daudelin's picture

I'm working on my first font containing open type features in which there is many discretionary ligatures. It seems like I can't preview the open type features. After compiling, a line is highlighted in the kern feature:

Stephen Rapp's picture

You probably need to show more information for anyone to answer you.

If you got a warning message and can't preview that means it didn't compile and the highlight is to indicate the error. Sometimes those warnings are tricky too interpret. If its kerning there may be some kind of glitch in your kerning classes or something. Try posting screenshots of the warning and the highlighted part of the kern feature.

Raphael Daudelin's picture

You're right, a part of the post is missing.
This is the line that is highlighted in the kern feature:

enum pos @_A v -70;

Raphael Daudelin's picture

and this is what the output panel says:

[FATAL] glyph class not defined (text was "@_A") [/Users/raphaeldaudelin/Library/Application Support/FontLab/Studio 5/Features/fontlab.fea 212]

Jens Kutilek's picture

Well, does the glyph class @_A exist in your VFB?

dezcom's picture

Raphael,
It is not the kern feature that is relavent. FL5 often shows the kern feature when the error is elsewhere.

Post your code. There is probably a syntax error or omitted semicolon somewhere.

ChrisL

dezcom's picture

Check the class name you are siting as _A, it may be misstyped.

ChrisL

Raphael Daudelin's picture

Well, does the glyph class @_A exist in your VFB?

I'm not sure to get it. Like if a ligature between @ and A exists in my VFB?

Raphael Daudelin's picture

Here's a grab of a part of the kern feature with the line that is highlighted when I'm trying to compile. It seems like as the kerning involves glyphs, in which I added anchors to build their accented versions, FL adds an @ glyph before the underscore. Is the @ glyph necessary in the code? I guess it is?

I also realized that all the kerning classes I had defined previously disapeared from the classes window, it seems that the information has been transfered in the open type kern feature since the @ glyph is placed before all glyphs containing anchors. The thing is that I don't know how this happens

As I'm not familiar with Open Type encoding, I don't understand what "pos" stands for before both kerned glyphs. I don't get either what "enum pos" stands for.

Hope this will help

Raphael Daudelin's picture

I also realize that in a previous VFB file which is almost the same with less dlig edited, the kerning classes have not disappeared yet, everything works perfectly i.e. I'm able to compile and preview all the alternates and ligatures.

Goran Soderstrom's picture

Seems like you have not perhaps rebuild/updated the kern feature, so try that first.
If still problems, copy past all your code (the regular features) here and we can see the error.
Next step is to take a look at your classes.

Btw, the @ stands for "class" – it means that it is a class that is kerned against 'v'.

Raphael Daudelin's picture

Thanks a lot to all of you. After updating the kern feature I still had some minor problems to fix in the code, but now, everything seems to work perfectly. I still don"t understand how the kerning classes disappeared but since the opentype kern feature has been updated succesfully, I guess it's much of a problem.

Syndicate content Syndicate content