From 263d121f3ee5e11c0eedb8417ce0bf324f163313 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Feb 2022 07:57:03 +0530 Subject: [PATCH] Rescale symbol_map faces for the desired cell height Matches treatment of fallback faces. See #4670 --- kitty/fonts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kitty/fonts.c b/kitty/fonts.c index 083b5aaac..009e3f1a5 100644 --- a/kitty/fonts.c +++ b/kitty/fonts.c @@ -1417,6 +1417,11 @@ initialize_font_group(FontGroup *fg) { } #undef I calc_cell_metrics(fg); + // rescale the symbol_map faces for the desired cell height, this is how fallback fonts are sized as well + for (size_t i = 0; i < descriptor_indices.num_symbol_fonts; i++) { + Font *font = fg->fonts + i + fg->first_symbol_font_idx; + set_size_for_face(font->face, fg->cell_height, true, (FONTS_DATA_HANDLE)fg); + } }