Rescale symbol_map faces for the desired cell height

Matches treatment of fallback faces. See #4670
This commit is contained in:
Kovid Goyal 2022-02-12 07:57:03 +05:30
parent 9222d002f7
commit 263d121f3e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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);
}
}