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.
This commit is contained in:
Ben Harris 2017-08-07 23:37:17 +01:00
parent d3a6dc5ebe
commit e3711118a2

View File

@ -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");