From: Ben Harris Date: Thu, 27 Feb 2025 09:49:38 +0000 (+0000) Subject: Add a "Unique font identifier" string (name ID 3) X-Git-Tag: bedstead-3.252~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=1ebb828fbc01350dad2fd1127f946acd241aec46;p=bedstead.git Add a "Unique font identifier" string (name ID 3) This seems to be necessary for the font viewer in MS Windows 11 to consider the font to be valid. The semantics of this field are not documented in the OpenType spec, but the Apple TrueType spec does at least give an example. I've roughly followed Apple's example, putting together the full name, version number, and build date that we already have to hand and include in the font. Between them those should uniquely identify reasonable builds of Bedstead fonts without adding extra complexity or non-reproducibility. --- diff --git a/bedstead.c b/bedstead.c index 9bdc44d..218523a 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3590,6 +3590,7 @@ main(int argc, char **argv) weight->suffix[0] ? width->suffix : width->suffix[0] ? width->suffix+1 : ""); } + NAMEF(3, "%s; %s; %s", get_fullname(), VERSION, timestr); NAME(4, get_fullname()); NAME(5, "Version " VERSION); NAME(6, fullname_to_fontname(get_fullname()));