chiark / gitweb /
Correct baseline of BDF fonts
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 16 Nov 2024 14:40:47 +0000 (14:40 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 16 Nov 2024 14:40:47 +0000 (14:40 +0000)
bedstead.c

index 13e6ca5c2adf44df5ec43f799e1233694636f502..b849189959a7c34c6d00198536bdcb0bdb290d58 100644 (file)
@@ -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");