Hey list,
Please have a look at https://git.gnome.org/browse/cantarell-fonts/plain/otf/Cantarell-Regular.otf?id=06bd50f988bcdf0c428a2d4be38f424b8e6596df at 14ppem with the light autohinter. Since this is an .otf and you can't force the autohinter in light rendering mode (bug), temporarily apply the attached patch to FT and use "LD_PRELOAD=objs/.libs/libfreetype.so ftview 14 Cantarell-Regular.otf" and press "B" to get light autohinting. 14ppem just so happens to be the standard UI font size in GNOME3.

The dot on the i and j are snapped to different heights and the ascender of 'd' doesn't seem to be snapped. Annoying in a word like "border" where the snapped heights of bd don't match.

I actually noticed similar snapping differences in a few other fonts at times, e.g. Georgia at 56px (JUN vs. KST). Is this a bug in the autohinter?
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 96572bd..753dc8b 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -641,6 +641,8 @@
       load_flags &= ~FT_LOAD_RENDER;
     }
 
+    load_flags |= FT_LOAD_FORCE_AUTOHINT;
+
     /*
      * Determine whether we need to auto-hint or not.
      * The general rules are:
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to