From: Timo Korvola Date: Tue, 6 Mar 2018 18:56:11 +0000 (+0200) Subject: Adjust graphics font. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=5181aac9a10fbf326749b25bf6042fe3273ca1ce;p=liskon_frotz.git Adjust graphics font. 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. --- diff --git a/src/sdl/sf_font3.c b/src/sdl/sf_font3.c index ac857e3..f04312e 100644 --- a/src/sdl/sf_font3.c +++ b/src/sdl/sf_font3.c @@ -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;