mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
term: clear box drawing glyph cache when reloading fonts
This commit is contained in:
parent
92dc581bea
commit
736c88c3fb
1 changed files with 8 additions and 0 deletions
|
|
@ -618,6 +618,14 @@ term_set_fonts(struct terminal *term, struct fcft_font *fonts[static 4])
|
||||||
term->fonts[i] = fonts[i];
|
term->fonts[i] = fonts[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (size_t i = 0; i < ALEN(term->box_drawing); i++) {
|
||||||
|
if (term->box_drawing[i] != NULL) {
|
||||||
|
pixman_image_unref(term->box_drawing[i]->pix);
|
||||||
|
free(term->box_drawing[i]);
|
||||||
|
term->box_drawing[i] = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const int old_cell_width = term->cell_width;
|
const int old_cell_width = term->cell_width;
|
||||||
const int old_cell_height = term->cell_height;
|
const int old_cell_height = term->cell_height;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue