File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ bool ffDetectTerminalSize(FFTerminalSizeResult* result)
3333 return false;
3434
3535 {
36- CONSOLE_FONT_INFO cfi ;
37- if (GetCurrentConsoleFont (hOutput , FALSE, & cfi )) // Only works for ConHost
36+ CONSOLE_FONT_INFOEX cfi ;
37+ if (GetCurrentConsoleFontEx (hOutput , FALSE, & cfi )) // Only works for ConHost
3838 {
3939 result -> width = result -> columns * (uint16_t ) cfi .dwFontSize .X ;
4040 result -> height = result -> rows * (uint16_t ) cfi .dwFontSize .Y ;
Original file line number Diff line number Diff line change @@ -960,8 +960,8 @@ static bool getCharacterPixelDimensions(FFLogoRequestData* requestData)
960960{
961961 #ifdef _WIN32
962962
963- CONSOLE_FONT_INFO cfi ;
964- if (GetCurrentConsoleFont (GetStdHandle (STD_OUTPUT_HANDLE ), FALSE, & cfi )) // Only works for ConHost
963+ CONSOLE_FONT_INFOEX cfi ;
964+ if (GetCurrentConsoleFontEx (GetStdHandle (STD_OUTPUT_HANDLE ), FALSE, & cfi )) // Only works for ConHost
965965 {
966966 requestData -> characterPixelWidth = cfi .dwFontSize .X ;
967967 requestData -> characterPixelHeight = cfi .dwFontSize .Y ;
You can’t perform that action at this time.
0 commit comments