diff --git a/guake/boxes.py b/guake/boxes.py index 2d9653781..d59af6f34 100644 --- a/guake/boxes.py +++ b/guake/boxes.py @@ -481,6 +481,10 @@ def split(self, orientation): dual_terminal_box.set_child_second(terminal_box) terminal_box.show() dual_terminal_box.show() + if self.terminal is not None: + # preserve font and font_scale in the new terminal + terminal.set_font(self.terminal.font) + terminal.font_scale = self.terminal.font_scale notebook.terminal_attached(terminal) return dual_terminal_box diff --git a/guake/terminal.py b/guake/terminal.py index 7c22cd627..cb1021746 100644 --- a/guake/terminal.py +++ b/guake/terminal.py @@ -500,7 +500,7 @@ def browse_link_under_cursor(self, url=None): def set_font(self, font): self.font = font - self.set_font_scale_index(0) + self.set_font_scale_index(self.font_scale) def set_font_scale_index(self, scale_index): self.font_scale_index = clamp(scale_index, -6, 12) diff --git a/releasenotes/notes/bugfix-bfcece2fed005b98.yaml b/releasenotes/notes/bugfix-bfcece2fed005b98.yaml new file mode 100644 index 000000000..620846ec6 --- /dev/null +++ b/releasenotes/notes/bugfix-bfcece2fed005b98.yaml @@ -0,0 +1,7 @@ +release_summary: > + Fix issue #1747 - Splitting terminal should not reset font size + +fixes: + - | + fixed issue #1747. Now font size is not reset after a terminal split +