From: Ben Harris Date: Sat, 16 Nov 2024 14:40:47 +0000 (+0000) Subject: Correct baseline of BDF fonts X-Git-Tag: bedstead-3.246~29 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=891129f1f4bd92f7dbf6efc16218ee46e7d750f7;p=bedstead.git Correct baseline of BDF fonts --- diff --git a/bedstead.c b/bedstead.c index 13e6ca5..b849189 100644 --- a/bedstead.c +++ b/bedstead.c @@ -4309,7 +4309,7 @@ bdf_gen(int px_height) int px_width = (px_height * XPIX * XSIZE) / (YPIX * YSIZE); int pt_height = (long)(px_height * 7227 + 3750) / 7500; int dpt_height = (long)(px_height * 7227 + 375) / 750; - int base = DESCENT; + int base = (px_height * DESCENT) / YSIZE; int i; printf("%%!\n");