From 891129f1f4bd92f7dbf6efc16218ee46e7d750f7 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 16 Nov 2024 14:40:47 +0000 Subject: [PATCH] Correct baseline of BDF fonts --- bedstead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.30.2