From c96a9ff389fe93ec2f134a9f3d65c89dec362dec Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 30 Jul 2020 08:19:06 -0700 Subject: [PATCH] Qt menus font This greatly improves the '?' choice when using the '#' prefix to select an extended command. It isn't perfect, because the layout (using spaces to pad the first column so that the second one lines up) produces at least one line where is so long that it wraps, and instead of | | that selectable menu entries have, the continuation is | | (made slightly worse by the fact that is indented a little and isn't. This affects the aesthetics of all NHW_MENU windows, not just the one that desparately needed help. Maybe the core should send some hint on a menu or text window by menu or text window basis about whether or not fixed-width font is preferable to variable one. --- win/Qt/qt_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/Qt/qt_menu.cpp b/win/Qt/qt_menu.cpp index fb7e391e4..405a982b8 100644 --- a/win/Qt/qt_menu.cpp +++ b/win/Qt/qt_menu.cpp @@ -214,7 +214,7 @@ void NetHackQtMenuWindow::EndMenu(const QString& p) int NetHackQtMenuWindow::SelectMenu(int h, MENU_ITEM_P **menu_list) { - QFont tablefont(qt_settings->normalFont()); + QFont tablefont(qt_settings->normalFixedFont()); table->setFont(tablefont); table->setRowCount(itemcount);