From c436332f25c0247ec7abc8beca3a304afe23b9f5 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 30 Mar 2020 21:02:54 +0100 Subject: [PATCH] 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. --- bedstead.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 : ""); -- 2.30.2