On Mon Jun 22 07:44:18 2026 +0000, Nikolay Sivov wrote:
I don't think we need freetype for that. We already have the value, and can mask it as needed. With wine-11.11 on my Debian system, the value is uninitialized and changes in-between calls to EnumFontFamiliesExA()'s callback function. The result is that the masked off value returned by GetOutlineTextMetricsA() cannot be used to get the font's licensing flag reliably, and apps that depend on it, (for legal reasons), wind up using fonts that they shouldn't or avoid fonts that they should use.
On the linked freetype documentation, they also say to use this function instead of relying on that value: ``` Use this function rather than directly reading the fs_type field in the PS_FontInfoRec structure, which is only guaranteed to return the correct results for Type 1 fonts. ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9480#note_143793