Fontalb error generating font

Novalgina2Fast's picture

Hi guys, probably this is a common mistake, but i don't know how can solve that.
I'm a student, I'm doing a font for my typography class, for now, I have only write ADHESION letters and there is only a ligature feature( It had to be a opentype font).
When I compile the script, it says me "[WARNING] cmap{plat=3,script=1,lang=0}: empty encoding" that I really don't know what means.....

But i can see my font without problem and every letter is ok, The preview works fine too.
then i add a ligature:
feature dlig {
sub s i' by i_alt;
} dlig;
and this works too.....
But i can't generate my font, i don't know why, i had to generate it in .otf(my professor want that) but i tried:
TTF/Unicode mode: and generate a blank preview of the font
TTF/Names mode: works, but i need an otf....

OTF/Unicode mode: blank font
OTF/Names mode:generate a font with some errors in the graphics(some part of the letters became white in a casual way)

Really i don't know what to do, some suggestions?

fontdesigner2's picture

I suggest you open a font that has ligatures in fontlab and look at how the lig feature is written. Copy and paste that code and change it a little, and it should work. Throw out the code you have in there now.

agisaak's picture

The code which he offers isn't entirely implausible. It isn't a ligature rule, but I can envision a face in which a contextual alternates are used in such a way that it makes sense to place them in the 'dlig' feature (particularly if the alternate in question overlaps the preceding s in a way that suggests a ligature). Moreover, the code in the 'dlig' feature above wouldn't lead to the error which he's encountering. However, i_alt isn't a valid name -- you should use i.alt instead.

I'd make sure that your glyphs are correctly named, that they are assigned unicode values correctly, and then let FontLab (assuming that's what you're using) to fill in the values in the 'Encodings and Unicode' pane automatically.

The letters becoming white suggests you've got overlapping contours and/or problems with your path directions.


Novalgina2Fast's picture

I'll try tomorrow, thanks.

Novalgina2Fast's picture

ok, sorry I was busy, thanks to everyone, Now, I really don't know how to fix the overlapping problem, I make work the liga features and the unicode problem, but overlapping is a question mark, how can i fix that? i'm using fontlab.
P.S. Overlapping show "himself" only when i generate the font, but when the code generate the glyphs the letters are okay.

Syndicate content Syndicate content