From e3711118a2bdb2c27a0cb022aa0f25a040fcbfbc Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 7 Aug 2017 23:37:17 +0100 Subject: [PATCH] Better TTF name generation. Now more-correctly generate family/subfamily names, both the versions for programs that can't handle much variety (IDs 1 and 2), and the proper typographic ones (IDs 16 and 17). This should stop "Medium" turning up in my font selector. --- bedstead.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bedstead.c b/bedstead.c index 2bbddc8..540b6eb 100644 --- a/bedstead.c +++ b/bedstead.c @@ -1476,6 +1476,13 @@ main(int argc, char **argv) printf("FontName: %s\n", fullname_to_fontname(get_fullname())); printf("FullName: %s\n", get_fullname()); printf("FamilyName: Bedstead\n"); + printf("LangName: 1033 \"\" \"Bedstead%s%s\" \"%s\" \"\" \"\" \"\" " + "\"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" " + "\"Bedstead\" \"%s%s\"\n\n", weight->suffix, width->suffix, + "Regular", + weight->suffix[0] ? weight->suffix+1 : "", + weight->suffix[0] ? width->suffix : + width->suffix[0] ? width->suffix+1 : ""); printf("Weight:%s\n", weight->suffix[0] ? weight->suffix : " Medium"); printf("OS2_WeightWidthSlopeOnly: 1\n"); printf("Copyright: Dedicated to the public domain\n"); -- 2.30.2