Skip to content

Commit

Permalink
More fine-grained zooming
Browse files Browse the repository at this point in the history
6 presses per doubling/halving of the scale factor
  • Loading branch information
ulidtko committed Sep 21, 2013
1 parent 115a0ba commit bdc6d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/guake
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
"""
from __future__ import absolute_import
from __future__ import division

import pygtk
import gobject
Expand Down Expand Up @@ -524,7 +525,7 @@ class GuakeTerminal(vte.Terminal):
self.font_scale_index = clamp(scale_index, -6, 12)

font = FontDescription(self.font.to_string())
scale_factor = 1.2 ** self.font_scale_index
scale_factor = 2 ** (self.font_scale_index / 6)
new_size = int(scale_factor * font.get_size())

if font.get_size_is_absolute():
Expand Down

0 comments on commit bdc6d49

Please sign in to comment.