Description
Similar to #104 I found another place font versions frequently show up that isn't being normalized:
Somehow nameID=3
(Apple docs: "Unique subfamily identification", Microsoft docs: "Unique font identifier") has come to be frequently filled with a fallback value (probably popularized by ufo2ft
precedent) composed of the font version, the short foundry name plus the font name.
Here is an example, the original being straight ufo2ft
output where it knew the major/minor version at build time, the update being a run where no version was available to ufo2ft
and instead an attempt was made to normalize the font version after the fact with font-v
:
--- /home/caleb/scratch/Libertinus-6.12/LibertinusSans-Italic.otf 2020-06-28T15:56:49+03:00
+++ LibertinusSans-Italic.otf 2020-08-18T12:47:49.742210+03:00
@@ -2540,13 +2540,13 @@
Italic
</namerecord>
<namerecord nameID="3" platformID="3" platEncID="1" langID="0x409">
- 6.120;ALIF;LibertinusSans-Italic
+ 1.000;ALIF;LibertinusSans-Italic
</namerecord>
<namerecord nameID="4" platformID="3" platEncID="1" langID="0x409">
Libertinus Sans Italic
</namerecord>
<namerecord nameID="5" platformID="3" platEncID="1" langID="0x409">
- Version 6.120
+ Version 7.001;RELEASE
</namerecord>
<namerecord nameID="6" platformID="3" platEncID="1" langID="0x409">
LibertinusSans-Italic
Obviously nameID=5
got set properly. Name №3 is a little trickier, but it might be worth looking at the string and seeing if the first segment looks like an OpenFV version string, and if it does update it.