[PATCH] conhost: Save default font's pitch and family on first run
Hugh McMaster
hugh.mcmaster at outlook.com
Wed Apr 20 08:18:03 CDT 2022
Wine currently saves the default pitch and family as FIXED_PITCH (0x1).
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
programs/conhost/window.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/programs/conhost/window.c b/programs/conhost/window.c
index fb02ef9fd94..c115e42a282 100644
--- a/programs/conhost/window.c
+++ b/programs/conhost/window.c
@@ -823,6 +823,7 @@ static int WINAPI get_first_font_sub_enum( const LOGFONTW *lf, const TEXTMETRICW
load_config( fc->console->window->config_key, &config );
config.cell_width = fc->console->active->font.width;
config.cell_height = fc->console->active->font.height;
+ config.font_pitch_family = fc->console->active->font.pitch_family;
memcpy( config.face_name, fc->console->active->font.face_name,
fc->console->active->font.face_len * sizeof(WCHAR) );
config.face_name[fc->console->active->font.face_len] = 0;
--
2.35.2
More information about the wine-devel
mailing list