mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-09 10:06:20 -05:00
Merge branch 'require-space-to-overflow-double-width-glyph'
This commit is contained in:
commit
587fce68fa
1 changed files with 5 additions and 1 deletions
6
render.c
6
render.c
|
|
@ -462,12 +462,16 @@ render_cell(struct terminal *term, pixman_image_t *pix,
|
|||
* - the *character* width is 1
|
||||
* - the *glyph* width is at least 1.5 cells
|
||||
* - the *glyph* width is less than 3 cells
|
||||
* - *this* column isn’t the last column
|
||||
* - *this* cells is followed by an empty cell, or a space
|
||||
*/
|
||||
if (term->conf->tweak.allow_overflowing_double_width_glyphs &&
|
||||
glyph != NULL &&
|
||||
glyph->cols == 1 &&
|
||||
glyph->width >= term->cell_width * 15 / 10 &&
|
||||
glyph->width < 3 * term->cell_width)
|
||||
glyph->width < 3 * term->cell_width &&
|
||||
col < term->cols - 1 &&
|
||||
(row->cells[col + 1].wc == 0 || row->cells[col + 1].wc == L' '))
|
||||
{
|
||||
cell_cols = min(2, cols_left);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue