From 1ebb828fbc01350dad2fd1127f946acd241aec46 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 27 Feb 2025 09:49:38 +0000 Subject: [PATCH] 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. --- bedstead.c | 1 + 1 file changed, 1 insertion(+) 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())); -- 2.30.2