mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
box-drawing: add infrastructure for rendering box drawing characters ourselves
* ‘term’ struct contains an array of 160 fcft glyph pointers * the glyph pointers are lazily allocated when we need to draw a box drawings character * Filtering out box drawings characters is easy - they are (except unicode 13, which isn’t handled yet )all in a single range.
This commit is contained in:
parent
44b32104a7
commit
7acdb3a0dd
7 changed files with 274 additions and 1 deletions
|
|
@ -1412,6 +1412,13 @@ term_destroy(struct terminal *term)
|
|||
for (size_t i = 0; i < 4; i++)
|
||||
free(term->font_sizes[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]);
|
||||
}
|
||||
}
|
||||
|
||||
free(term->search.buf);
|
||||
|
||||
if (term->render.workers.threads != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue