chiark / gitweb /
Correct sign of OS2SubYOff.
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 7 Nov 2016 00:17:47 +0000 (00:17 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 7 Nov 2016 00:17:47 +0000 (00:17 +0000)
Microsoft's documentation says it's the offset below the baseline, as
opposed to above for superscript.

bedstead.c

index dff2e33b59215b5935bc12dbc66c02e761cbcd2f..df1210807843f999f2d4e3f75dc54c7a035bd0c1 100644 (file)
@@ -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");