mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-01 13:23:58 +00:00
Fix crash on macOS when changing font size
This commit is contained in:
parent
dd6108de5b
commit
6c98b676bb
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ python_send_to_gpu(unsigned int x, unsigned int y, unsigned int z, uint8_t* buf)
|
|||
|
||||
static inline PyObject*
|
||||
update_cell_metrics(float pt_sz, float xdpi, float ydpi) {
|
||||
#define CALL(f) { if ((f)->face) { if(!set_size_for_face((f)->face, pt_sz, xdpi, ydpi)) return NULL; clear_sprite_map(f); } }
|
||||
#define CALL(f) { if ((f)->face) { if(!set_size_for_face((f)->face, pt_sz, xdpi, ydpi)) return NULL; clear_sprite_map(f); (f)->hb_font = harfbuzz_font_for_face((f)->face); } }
|
||||
CALL(&medium_font); CALL(&bold_font); CALL(&italic_font); CALL(&bi_font); CALL(&box_font);
|
||||
for (size_t i = 0; fallback_fonts[i].face != NULL; i++) {
|
||||
CALL(fallback_fonts + i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue