From: Ben Harris Date: Mon, 30 Mar 2020 20:02:54 +0000 (+0100) Subject: Don't emit name ID 16 without 17 X-Git-Tag: bedstead-002.002~39 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=c436332f25c0247ec7abc8beca3a304afe23b9f5;p=bedstead.git Don't emit name ID 16 without 17 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. --- diff --git a/bedstead.c b/bedstead.c index b62c628..9d78aca 100644 --- a/bedstead.c +++ b/bedstead.c @@ -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 : "");