From: Ben Harris Date: Mon, 7 Aug 2017 22:37:17 +0000 (+0100) Subject: Better TTF name generation. X-Git-Tag: bedstead-002.000~82 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=e3711118a2bdb2c27a0cb022aa0f25a040fcbfbc;p=bedstead.git 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. --- 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");