chiark / gitweb /
Remove lower alignment zone at +1 pixel
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 18 Nov 2024 13:56:58 +0000 (13:56 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 18 Nov 2024 14:09:43 +0000 (14:09 +0000)
I think I added it because a lot of mathematical operators (like '+')
have their bottom edge there.  But such operators don't really need
their bottom edges aligned: it's much more important that they should
have their proper shapes and should have their centre lines aligned.

This only slightly improves the rendering of '+' in FreeType 2.12.1:
it's still asymmetric but the asymmetry is in a better direction.
Moreover, some glyphs with descenders like "section" are substantially
improved.

bedstead.c

index 1595431ee640bb025d13af8c7716d3823cb9af51..62c2cb0bb6b787346856ef332b84196af8f2f3f6 100644 (file)
@@ -3152,9 +3152,8 @@ main(int argc, char **argv)
             (double)(YPIX * 5), (double)(YPIX * 5),
             (double)(YPIX * 6), (double)(YPIX * 6),
             (double)(YPIX * 7), (double)(YPIX * 7));
-       TTXF("OtherBlues", "%4g %4g %4g %4g",
-            (double)(YPIX * -2), (double)(YPIX * -2),
-            (double)(YPIX * 1), (double)(YPIX * 1));
+       TTXF("OtherBlues", "%4g %4g",
+            (double)(YPIX * -2), (double)(YPIX * -2));
        TTXI("BlueFuzz", 0);
        TTXF("StdHW", "%4g", (double)YPIX);
        TTXF("StdVW", "%4g", (double)(XPIX * (100 + weight->weight) / 100));