mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
wip: grapheme shaping
This commit is contained in:
parent
c1cde66f70
commit
b9ef703eb1
16 changed files with 340 additions and 178 deletions
|
|
@ -229,12 +229,11 @@ extract_one(const struct terminal *term, const struct row *row,
|
|||
const struct composed *composed
|
||||
= &term->composed[cell->wc - CELL_COMB_CHARS_LO];
|
||||
|
||||
if (!ensure_size(ctx, 1 + composed->count))
|
||||
if (!ensure_size(ctx, composed->count))
|
||||
goto err;
|
||||
|
||||
ctx->buf[ctx->idx++] = composed->base;
|
||||
for (size_t i = 0; i < composed->count; i++)
|
||||
ctx->buf[ctx->idx++] = composed->combining[i];
|
||||
ctx->buf[ctx->idx++] = composed->chars[i];
|
||||
}
|
||||
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue