mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
Rescale symbol_map faces for the desired cell height
Matches treatment of fallback faces. See #4670
This commit is contained in:
parent
9222d002f7
commit
263d121f3e
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue