mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 10:01:33 +00:00
never return zero cell width for a font
This commit is contained in:
parent
60601a6dba
commit
e5321f96a3
1 changed files with 1 additions and 0 deletions
|
|
@ -386,6 +386,7 @@ calc_cell_width(Face *self) {
|
|||
ans = MAX(ans, (unsigned int)ceilf((float)self->face->glyph->metrics.horiAdvance / 64.f));
|
||||
}
|
||||
}
|
||||
if (!ans) ans = (unsigned int)ceilf(self->face->size->metrics.max_advance / 64.f);
|
||||
return ans;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue