Create a new setting to adjust the line height in the terminal
This commit is contained in:
parent
ce8442a3d8
commit
dfdc826015
3 changed files with 89 additions and 17 deletions
|
@ -567,7 +567,7 @@ impl Element for TerminalElement {
|
|||
let selection_color = settings.theme.editor.selection.selection;
|
||||
let match_color = settings.theme.search.match_background;
|
||||
let dimensions = {
|
||||
let line_height = font_cache.line_height(text_style.font_size);
|
||||
let line_height = text_style.font_size * settings.terminal_line_height();
|
||||
let cell_width = font_cache.em_advance(text_style.font_id, text_style.font_size);
|
||||
TerminalSize::new(line_height, cell_width, constraint.max)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue