On Mon Mar 23 10:08:19 2026 +0000, Zhiyi Zhang wrote:
I tried drawing vertical text using the System font, which is a bitmap font on Windows. The text is drawn vertically. So maybe we should fix CreateFontIndirectA() or ExtTextOutW() instead. ```c case WM_PAINT: { PAINTSTRUCT ps; HDC hdc; RECT rect; LOGFONTA logfont = { 0 }; HFONT old_font, font2; hdc = wParam ? (HDC)wParam : BeginPaint( hwnd, &ps ); logfont.lfEscapement = 900; logfont.lfOrientation = 900; logfont.lfHeight = -12; logfont.lfWeight = FW_NORMAL; strcpy(logfont.lfFaceName, "System"); font2 = CreateFontIndirectA(&logfont); SetRect(&rect, 50, 50, 100, 100); old_font = SelectObject(hdc, font2); ExtTextOutW(hdc, 50, 50, ETO_OPAQUE, &rect, L"12345", 5, 0); SelectObject(hdc, old_font); DeleteObject(font2); if ( !wParam ) EndPaint( hwnd, &ps ); return 0; } I agree. Proposed fix looks more like a workaround, that can potentially select different font, if I understand it correctly.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10358#note_133351