From: Ben Harris Date: Mon, 18 Nov 2024 13:56:58 +0000 (+0000) Subject: Remove lower alignment zone at +1 pixel X-Git-Tag: bedstead-3.246~20 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=f273f0e98e1dd5171200d8ab55b9e73e186fb725;p=bedstead.git Remove lower alignment zone at +1 pixel 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. --- diff --git a/bedstead.c b/bedstead.c index 1595431..62c2cb0 100644 --- a/bedstead.c +++ b/bedstead.c @@ -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));