doy / runes

a modern terminal client
Other
35 stars 1 forks source link

Font handling on macOS #66

Open danluu opened 7 years ago

danluu commented 7 years ago

In display.c,

cairo_set_scaled_font(display->cr, display->scaled_font);

followed by

cairo_show_glyphs(display->cr, display->glyph_buf, len);

causes runes to fail with

Assertion failed: (!scaled_font->cache_frozen), function _cairo_scaled_glyph_page_destroy, file cairo-scaled-font.c, line 459.
Abort trap: 6

when any text is drawn. Commenting out cairo_set_scaled_font(display->cr, display->scaled_font); "works", but doing that removes font support.