Huw Davies (@huw) commented about dlls/gdi32/tests/font.c:
+ { + lf.lfPitchAndFamily = td[i].family; + lf.lfHeight = td[i].font_height; + lf.lfCharSet = td[i].charset; + hfont = NULL; + + hfont = CreateFontIndirectW(&lf); + ok(!!hfont, "Failed to create font.\n"); + + old = SelectObject(hdc, hfont); + + memset(&metric, 0, sizeof(metric)); + GetTextMetricsW(hdc, &metric); + + todo_wine_if(td[i].todo) ok((metric.tmPitchAndFamily & 0x70) == (td[i].family & 0x70), + "got unexpected font family %2x, needed %2x\n", metric.tmPitchAndFamily & 0x70, td[i].family & 0x70); Does the returned tmPitchAndFamily have the high bit set at all? It would be nicer to just mask that with `0xf0`.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9514#note_129011