From: Ben Harris Date: Mon, 7 Nov 2016 00:17:47 +0000 (+0000) Subject: Correct sign of OS2SubYOff. X-Git-Tag: bedstead-001.002~13 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=ab75eedf7ce2ddb566ec288e7f10a298c98dd83a;p=bedstead.git Correct sign of OS2SubYOff. Microsoft's documentation says it's the offset below the baseline, as opposed to above for superscript. --- diff --git a/bedstead.c b/bedstead.c index dff2e33..df12108 100644 --- a/bedstead.c +++ b/bedstead.c @@ -1119,7 +1119,7 @@ main(int argc, char **argv) printf("OS2SupYSize: %d\n", YSIZE * YPIX * 5 / (YSIZE - 3)); printf("OS2SubXOff: %d\n", XPIX + XPIX * 3 / (XSIZE - 1)); printf("OS2SupXOff: %d\n", XPIX + XPIX * 3 / (XSIZE - 1)); - printf("OS2SubYOff: %d\n", -2 * YPIX); + printf("OS2SubYOff: %d\n", 2 * YPIX); printf("OS2SupYOff: %d\n", 2 * YPIX); printf("TTFWidth: %d\n", param->ttfwidth); printf("LayerCount: 2\n");