Merge branch 'line-height' of https://github.com/mattrose/terminator into issue_111

This commit is contained in:
Douglas Bacon 2020-06-21 12:06:39 -04:00
commit c4a6ac96c8
2 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,7 @@ DEFAULTS = {
'use_system_font' : True,
'use_theme_colors' : False,
'bold_is_bright' : False,
'line_height' : 1.0,
'encoding' : 'UTF-8',
'active_encodings' : ['UTF-8', 'ISO-8859-1'],
'focus_on_close' : 'auto',

View File

@ -694,6 +694,8 @@ class Terminal(Gtk.VBox):
except:
pass
self.vte.set_allow_bold(self.config['allow_bold'])
if hasattr(self.vte,'set_cell_height_scale'):
self.vte.set_cell_height_scale(self.config['line_height'])
if hasattr(self.vte, 'set_bold_is_bright'):
self.vte.set_bold_is_bright(self.config['bold_is_bright'])
@ -813,6 +815,7 @@ class Terminal(Gtk.VBox):
elif self.config['scrollbar_position'] == 'right':
self.terminalbox.reorder_child(self.vte, 0)
self.vte.set_rewrap_on_resize(self.config['rewrap_on_resize'])
self.titlebar.update()