On Wed Dec 10 18:24:34 2025 +0000, Nikolay Sivov wrote:
Which name is used on Windows for those fonts? Are those fonts available for testing somewhere? In DirectWrite we are using ids 1, 16, and 21, in different order of priority. So, why not use id 1 here? On testing, these fonts cannot be previewed or installed on Windows 10, with an error of "The file '[filename here]' does not appear to be a valid font." They're `.otf`, which is still supported according to Microsoft Support docs, while the base font MaterialIcons-Regular is `.ttf`. The unique name field isn't shown anywhere in font selection (for notepad) or file properties, otherwise it would show as "FontForge 2.0 : Material Icons : 5-3-2019" in any menus.
They are provided by the `material-icons-fonts` package in Fedora. That's reasonable, I was following that because the code was using UniqueID for `otmpFullName` that another unique signature would be necessary. Microsoft's OpenType docs[^1] do not give that much information on that name table value, only stating that is it a unique value for applications to identify the font being used, giving no other fallback information for if this field is missing. Otherwise If it should properly be a Full Name (and human readable), it could be constructed[^2] using 1 (Family) and 2 (Style) based on the examples[^3] given in Microsoft's OpenType docs. [^1]: https://learn.microsoft.com/en-us/typography/opentype/spec/name [^2]: https://learn.microsoft.com/en-us/typography/opentype/spec/recom#name [^3]: https://learn.microsoft.com/en-us/typography/opentype/spec/namesmp -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9744#note_125400