chiark / gitweb /
Don't emit unnecessary CFF DICT entries
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 2 Nov 2024 23:02:37 +0000 (23:02 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 14 Nov 2024 22:27:18 +0000 (22:27 +0000)
In several cases, Bedstead uses the defaults, so there's no need to
mention them.

bedstead.c

index f19d470b1e3d650ddd80878dcbb2ecbd7de45897..5df11b869c1cfff6506f807604e054ec28c475fe 100644 (file)
@@ -3026,17 +3026,12 @@ main(int argc, char **argv)
        TTXS(FamilyName, "Bedstead");
        TTXS(Weight, *weight->suffix ? weight->suffix + 1 : "Medium");
        TTXI(isFixedPitch, 1);
-       TTXI(ItalicAngle, 0);
        TTXI(UnderlinePosition, -3 * YPIX / 2);
        TTXI(UnderlineThickness, YPIX);
-       TTXI(PaintType, 0);
-       TTXI(CharstringType, 2);
        TTXF(FontMatrix, "%g 0 0 %g 0 0",
             1.0/(YSIZE * YPIX), 1.0/(YSIZE * YPIX));
        TTXF(FontBBox, "0 %d %d %d", (int)(-DESCENT * YPIX),
             (int)(XSIZE * XPIX), (int)(ASCENT * YPIX));
-       TTXI(StrokeWidth, 0);
-       printf("  <Encoding name='StandardEncoding'/>\n");
        printf("  <Private>\n");
        TTXF(BlueValues, "0 0 %4g %4g %4g %4g %4g %4g",
             (double)(YPIX * 5), (double)(YPIX * 5),