chiark / gitweb /
Set the "H" flag on all glyphs in SFD files.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 12 Aug 2017 09:11:28 +0000 (10:11 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 12 Aug 2017 09:11:28 +0000 (10:11 +0100)
This turns out to  be all it takes to get  FontForge to autohint fonts
on generation.  FontForge's autohinter  isn't perfect, but it's pretty
good and certainly better than anything else I've got.

bedstead.c

index c079d2fff2cf8adad6ec796535c89a0fd0360fd1..b177561ce52452fae464f3ead85791a41b3ac726 100644 (file)
@@ -1588,7 +1588,7 @@ main(int argc, char **argv)
                    glyphs[i].unicode != -1 ? glyphs[i].unicode :
                    65536 + extraglyphs++, glyphs[i].unicode, i);
                printf("Width: %d\n", XSIZE * XPIX);
-               printf("Flags: W\n");
+               printf("Flags: HW\n");
                printf("LayerCount: 2\n");
                dolookups(&glyphs[i]);
                if (glyphs[i].flags & MOS)