mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
box-drawings: implement octants
This commit is contained in:
parent
768f254286
commit
9a1b59adae
5 changed files with 467 additions and 12 deletions
16
render.c
16
render.c
|
|
@ -801,7 +801,15 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
|
|||
* Note, the full range is U+1FB00 - U+1FBF9
|
||||
*/
|
||||
(base >= GLYPH_LEGACY_FIRST &&
|
||||
base <= GLYPH_LEGACY_LAST)) &&
|
||||
base <= GLYPH_LEGACY_LAST) ||
|
||||
|
||||
/*
|
||||
* Unicode 16 "Symbols for Legacy Computing Supplement"
|
||||
*
|
||||
* Note, the full range is U+1CC00 - U+1CEAF
|
||||
*/
|
||||
(base >= GLYPH_OCTANTS_FIRST &&
|
||||
base <= GLYPH_OCTANTS_LAST)) &&
|
||||
|
||||
likely(!term->conf->box_drawings_uses_font_glyphs))
|
||||
{
|
||||
|
|
@ -809,7 +817,11 @@ render_cell(struct terminal *term, pixman_image_t *pix, pixman_region32_t *damag
|
|||
size_t count;
|
||||
size_t idx;
|
||||
|
||||
if (base >= GLYPH_LEGACY_FIRST) {
|
||||
if (base >= GLYPH_OCTANTS_FIRST) {
|
||||
arr = &term->custom_glyphs.octants;
|
||||
count = GLYPH_OCTANTS_COUNT;
|
||||
idx = base - GLYPH_OCTANTS_FIRST;
|
||||
} else if (base >= GLYPH_LEGACY_FIRST) {
|
||||
arr = &term->custom_glyphs.legacy;
|
||||
count = GLYPH_LEGACY_COUNT;
|
||||
idx = base - GLYPH_LEGACY_FIRST;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue