mirror of
https://bjh21.me.uk/bedstead/.git
synced 2026-07-10 05:53:05 -04:00
Extra OS/2 metrics.
Largely for the purposes of getting the strikeout right.
This commit is contained in:
parent
dd5a4f2cd4
commit
163446d3fa
11
bedstead.c
11
bedstead.c
@ -1108,8 +1108,19 @@ main(int argc, char **argv)
|
||||
printf("ItalicAngle: 0\n");
|
||||
printf("UnderlinePosition: %d\n", -YPIX / 2);
|
||||
printf("UnderlineWidth: %d\n", YPIX);
|
||||
printf("OS2StrikeYPos: %d\n", 3 * YPIX);
|
||||
printf("OS2StrikeYSize: %d\n", YPIX);
|
||||
printf("Ascent: %d\n", 8 * YPIX);
|
||||
printf("Descent: %d\n", 2 * YPIX);
|
||||
/* Sub/Superscript are three by five pixels */
|
||||
printf("OS2SubXSize: %d\n", YSIZE * YPIX * 3 / (XSIZE - 1));
|
||||
printf("OS2SupXSize: %d\n", YSIZE * YPIX * 3 / (XSIZE - 1));
|
||||
printf("OS2SubYSize: %d\n", YSIZE * YPIX * 5 / (YSIZE - 3));
|
||||
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("OS2SupYOff: %d\n", 2 * YPIX);
|
||||
printf("TTFWidth: %d\n", param->ttfwidth);
|
||||
printf("LayerCount: 2\n");
|
||||
printf("Layer: 0 0 \"Back\" 1\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user