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:
Daniel Eklöf 2020-12-26 16:24:16 +01:00
parent 44b32104a7
commit 7acdb3a0dd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 274 additions and 1 deletions

View file

@ -261,6 +261,8 @@ struct terminal {
int font_scale;
enum fcft_subpixel font_subpixel;
struct fcft_glyph *box_drawing[160];
bool is_sending_paste_data;
ptmx_buffer_list_t ptmx_buffers;
ptmx_buffer_list_t ptmx_paste_buffers;