chiark / gitweb /
Don't emit name ID 16 without 17
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 30 Mar 2020 20:02:54 +0000 (21:02 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 30 Mar 2020 20:02:54 +0000 (21:02 +0100)
The OpenType spec isn't entirely confident here, but it seems to think
that name ID 16 is unnecessary if it's identical to 1, and it makes
sense to me that 16/17 should go together as a pair just like 1/2 do.

bedstead.c

index b62c628da535a316e66ab92ac960f1b0731c5364..9d78acabae43d0ddf6e1d726abe89e02f60fd08a 100644 (file)
@@ -1857,8 +1857,9 @@ main(int argc, char **argv)
        printf("FamilyName: Bedstead\n");
        printf("LangName: 1033 \"\" \"Bedstead%s%s\" \"%s\" \"\" \"\" \"\" "
               "\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" "
-              "\"Bedstead\" \"%s%s\"\n\n", weight->suffix, width->suffix,
+              "\"%s\" \"%s%s\"\n\n", weight->suffix, width->suffix,
               "Regular",
+              weight->suffix[0] || width->suffix[0] ? "Bedstead" : "",
               weight->suffix[0] ? weight->suffix+1 : "",
               weight->suffix[0] ? width->suffix :
               width->suffix[0] ? width->suffix+1 : "");