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:
e46dd52
)
Move character images to bottom of character cell instead of top.
author
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 23 Nov 2013 22:03:15 +0000
(22:03 +0000)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 23 Nov 2013 22:03:15 +0000
(22:03 +0000)
The SAA5050 data sheet shows that there's a blank scanline at the top of
each alphanumeric character compared with the mosaic graphics
characters. Adjust the font ascent and descent to correctly represent
this.
bedstead.c
patch
|
blob
|
history
diff --git
a/bedstead.c
b/bedstead.c
index 4a0347ad523e4e7e0995ef6d4bca89d399443be4..92dd145810c3abb8b61075ba2ca4b2507809f6a3 100644
(file)
--- a/
bedstead.c
+++ b/
bedstead.c
@@
-966,8
+966,8
@@
main(int argc, char **argv)
printf("ItalicAngle: 0\n");
printf("UnderlinePosition: %d\n", -YPIX / 2);
printf("UnderlineWidth: %d\n", YPIX);
- printf("Ascent: %d\n",
7
* YPIX);
- printf("Descent: %d\n",
3
* YPIX);
+ printf("Ascent: %d\n",
8
* YPIX);
+ printf("Descent: %d\n",
2
* YPIX);
printf("LayerCount: 2\n");
printf("Layer: 0 0 \"Back\" 1\n");
printf("Layer: 1 0 \"Fore\" 0\n");