Set font to 7 points. Tweak zoom levels.

This commit is contained in:
Marco Pesenti Gritti 2007-03-01 21:38:38 +01:00
parent 47b8ad2496
commit d1a29ecf32
2 changed files with 4 additions and 4 deletions

View File

@ -3,8 +3,8 @@ import pango
from sugar.graphics import units from sugar.graphics import units
_system_fonts = { _system_fonts = {
'default' : 'Bitstream Vera Sans %d' % units.points_to_device(9), 'default' : 'Bitstream Vera Sans %d' % units.points_to_device(7),
'default-bold' : 'Bitstream Vera Sans bold %d' % units.points_to_device(9) 'default-bold' : 'Bitstream Vera Sans bold %d' % units.points_to_device(7)
} }
class Font(object): class Font(object):

View File

@ -63,8 +63,8 @@ import gtk
import _sugar import _sugar
_MAX_ZOOM_FACTOR = 1.5 _MAX_ZOOM_FACTOR = 2.0
_ZOOM_CONSTANT = 800.0 _ZOOM_CONSTANT = 650.0
def _compute_zoom_factor(): def _compute_zoom_factor():
screen_width = gtk.gdk.screen_width() screen_width = gtk.gdk.screen_width()