GetCurrentConsoleFontEx unable to work normally #13390

Open
opened 2026-01-31 03:41:24 +00:00 by claunia · 0 comments
Owner

Originally created by @zmcj1 on GitHub (Apr 11, 2021).

Windows Terminal version (or Windows build number)

10.0.19043.906

Other Software

In Windows Console(conhost)

Steps to reproduce

    CONSOLE_FONT_INFOEX cfi;
    cfi.cbSize = sizeof(CONSOLE_FONT_INFOEX);
    ::GetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), false, &cfi);

Expected Behavior

cfi.dwFontSize represents the font size of current console.

Actual Behavior

cfi.dwFontSize.X always eqauls to 0, but other structure members are in line with expectations.
//In fact, this should be a bug introduced by the recent Windows update.

Originally created by @zmcj1 on GitHub (Apr 11, 2021). ### Windows Terminal version (or Windows build number) 10.0.19043.906 ### Other Software In Windows Console(conhost) ### Steps to reproduce CONSOLE_FONT_INFOEX cfi; cfi.cbSize = sizeof(CONSOLE_FONT_INFOEX); ::GetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), false, &cfi); ### Expected Behavior cfi.dwFontSize represents the font size of current console. ### Actual Behavior cfi.dwFontSize.X always eqauls to 0, but other structure members are in line with expectations. //In fact, this should be a bug introduced by the recent Windows update.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13390