mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term: initialize term->font_line_height when there’s no user-set line-height
This commit is contained in:
parent
94bac0513a
commit
e85257bcae
1 changed files with 4 additions and 1 deletions
|
|
@ -709,8 +709,11 @@ term_line_height_update(struct terminal *term)
|
|||
{
|
||||
const struct config *conf = term->conf;
|
||||
|
||||
if (term->conf->line_height.px < 0)
|
||||
if (term->conf->line_height.px < 0) {
|
||||
term->font_line_height.pt = 0;
|
||||
term->font_line_height.px = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
const float dpi = term->font_is_sized_by_dpi ? term->font_dpi : 96.;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue