[PATCH 3/3] conhost: Set the new font pitch and family from the font dialog
Hugh McMaster
hugh.mcmaster at outlook.com
Tue Mar 1 05:37:02 CST 2022
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 e408a9830e1..28c821247e9 100644
--- a/programs/conhost/window.c
+++ b/programs/conhost/window.c
@@ -643,6 +643,7 @@ static HFONT select_font_config( struct console_config *config, unsigned int cp,
config->cell_width = tm.tmAveCharWidth;
config->cell_height = tm.tmHeight + tm.tmExternalLeading;
config->font_weight = tm.tmWeight;
+ config->font_pitch_family = tm.tmPitchAndFamily;
lstrcpyW( config->face_name, lf->lfFaceName );
/* FIXME: use maximum width for DBCS codepages since some chars take two cells */
--
2.35.1
More information about the wine-devel
mailing list