https://bugs.winehq.org/show_bug.cgi?id=50183
Bug ID: 50183 Summary: GetCurrentConsoleFontEx - returns wrong dwFontSize Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: vladimir.kokovic@gmail.com Distribution: ---
wine version=wine-5.17-1657-g92fb63d7754
code snippet: ------------- { CONSOLE_FONT_INFO pfi; bSuccess = GetCurrentConsoleFont( myStdOut, true, &pfi ); COORD fCoord = GetConsoleFontSize( myStdOut, pfi.nFont ); vkLog( "GetConsoleFontSize X=%d Y=%d\n", fCoord.X, fCoord.Y ); CONSOLE_FONT_INFOEX Font = { sizeof( Font ) }; GetCurrentConsoleFontEx( myStdOut, FALSE, &Font ); vkLog( "GetCurrentConsoleFontEx 1 nFont=%d dwFontSize={X=%d Y=%d} FontFamily=%d FontWeight=%d FaceName='%ls'\n", Font.nFont, Font.dwFontSize.X, Font.dwFontSize.Y, Font.FontFamily, Font.FontFamily, Font.FaceName ); //dwFontSize: //A COORD structure that contains the width and height of each character in the font, in logical units. //The X member contains the width, while the Y member contains the height. Font.dwFontSize.X = fCoord.X; Font.dwFontSize.Y = fCoord.Y; SetCurrentConsoleFontEx(myStdOut, FALSE, &Font); GetCurrentConsoleFontEx( myStdOut, FALSE, &Font ); vkLog( "GetCurrentConsoleFontEx 2 nFont=%d dwFontSize={X=%d Y=%d} FontFamily=%d FontWeight=%d FaceName='%ls'\n", Font.nFont, Font.dwFontSize.X, Font.dwFontSize.Y, Font.FontFamily, Font.FontFamily, Font.FaceName ); }
log result: ----------- 2020-11-25 10:22:29 - GetConsoleFontSize X=8 Y=16 2020-11-25 10:22:29 - GetCurrentConsoleFontEx 1 nFont=0 dwFontSize={X=200 Y=58} FontFamily=1 FontWeight=1 FaceName='Liberation Mono' 2020-11-25 10:22:29 - GetCurrentConsoleFontEx 2 nFont=0 dwFontSize={X=200 Y=58} FontFamily=1 FontWeight=1 FaceName='Liberation Mono'
Vladimir Koković, DP senior(70), Serbia, Belgrade, 25.November 2020
https://bugs.winehq.org/show_bug.cgi?id=50183
Hugh McMaster hugh.mcmaster@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hugh.mcmaster@outlook.com
--- Comment #1 from Hugh McMaster hugh.mcmaster@outlook.com --- This no longer seems to be an issue. Can you please check?