chiark
/
gitweb
/
~bjharris
/
bedstead.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be22387
)
Correct baseline of BDF fonts
author
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 16 Nov 2024 14:40:47 +0000
(14:40 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 16 Nov 2024 14:40:47 +0000
(14:40 +0000)
bedstead.c
patch
|
blob
|
history
diff --git
a/bedstead.c
b/bedstead.c
index 13e6ca5c2adf44df5ec43f799e1233694636f502..b849189959a7c34c6d00198536bdcb0bdb290d58 100644
(file)
--- 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");