chiark / gitweb /
Add explicit BlueValues, OtherBlues, and BlueFuzz.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 6 Aug 2017 17:28:03 +0000 (18:28 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 6 Aug 2017 17:28:03 +0000 (18:28 +0100)
BlueValues gains the upper edge of symbols and Hebrew letters.
OtherBlues gains the bottom edge of symbols.  BlueFuzz is set to zero
because it's unnecessary (and this is recommended by the Type 1 spec).

bedstead.c

index 3f7ca4f449797b275b4480c98ee9ee9cb559e190..d528e7079c7afcdfa6c204337ed959d743d9bcab 100644 (file)
@@ -1517,9 +1517,14 @@ main(int argc, char **argv)
                printf("StrokedFont: 1\n");
                printf("StrokeWidth: 50\n");
        }
-       printf("BeginPrivate: 2\n");
-       printf(" StdHW 5 [%d]\n", YPIX);
-       printf(" StdVW 5 [%d]\n", XPIX * (100 + weight->weight) / 100);
+       printf("BeginPrivate: 5\n");
+       printf(" StdHW 6 [%4d]\n", YPIX);
+       printf(" StdVW 6 [%4d]\n", XPIX * (100 + weight->weight) / 100);
+       printf(" BlueValues 35 [0 0 %4d %4d %4d %4d %4d %4d]\n",
+              YPIX * 5, YPIX * 5, YPIX * 6, YPIX * 6, YPIX * 7, YPIX * 7);
+       printf(" OtherBlues 21 [%4d %4d %4d %4d]\n",
+              YPIX * -2, YPIX * -2, YPIX * 1, YPIX * 1);
+       printf(" BlueFuzz 1 0\n"); 
        printf("EndPrivate\n");
        /* Force monochrome at 10 and 20 pixels, and greyscale elsewhere. */
        printf("GaspTable: 5 9 2 10 0 19 3 20 0 65535 3\n");