Adjust graphics font.
authorTimo Korvola <tkorvola@iki.fi>
Tue, 6 Mar 2018 18:56:11 +0000 (20:56 +0200)
committerDavid Griffith <dave@661.org>
Sun, 11 Mar 2018 11:48:50 +0000 (04:48 -0700)
Set double height graphics font ascent to 14 and descent to 2
(was (12, 4)).  The new values match those of the built-in text font.
Set the y offset of all glyphs to -2 for both single and double
height graphics font, which now have the same descent
(yof was erroneously 0).  Beyond Zork now looks about right with the
built-in fonts.  It still looks awful with custom fonts because the
graphics font should be scaled to the size of the fixed width text
font.

src/sdl/sf_font3.c

index ac857e347d5a834c3599f934615147caef205929..f04312e749aac7fa3336a6bc0eafffd9103a4b77 100644 (file)
@@ -104,7 +104,7 @@ static struct {
   byte w, h;
   char xof, yof;
   byte bitmap[16];
-  } myglyph = {8,8,8,0,0};
+  } myglyph = {8,8,8,0,-2};
 
 static void nodestroy(SFONT *s){}
 static int myheight(SFONT *s){ return 8;}
@@ -144,8 +144,8 @@ static SFONT myfont3 = {
 SFONT * SF_font3 = &myfont3;
 
 static int myheight2(SFONT *s){ return 16;}
-static int myascent2(SFONT *s){ return 12;}
-static int mydescent2(SFONT *s){ return 4;}
+static int myascent2(SFONT *s){ return 14;}
+static int mydescent2(SFONT *s){ return 2;}
 static SF_glyph * mygetglyph2(SFONT *s, word c, int allowdef)
   {
   byte *src, *dst; int i;