From 0f33a634c0fc58ef61e6820dbf2cee382ab4d281 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 03 Oct 2008 08:30:50 +0000 Subject: Fix up scaling calculations, had some regressions in the previous commits. --- (limited to 'src/sugar/graphics') diff --git a/src/sugar/graphics/style.py b/src/sugar/graphics/style.py index b8875a6..5b74bc5 100644 --- a/src/sugar/graphics/style.py +++ b/src/sugar/graphics/style.py @@ -17,20 +17,15 @@ """ All the constants are expressed in pixels. They are defined for the XO screen -and are usually adapted to different resolution by applying a zoom factor. The -factor for traditional 96 dpi screen is currently 0.72 which is the inverse -of the one we are using to adapt web pages to the XO screen. It should be -considered a reference value rather then a scale constant which has to be -automatically applied and always respected. +and are usually adapted to different resolution by applying a zoom factor. """ import os +import logging import gtk import pango -_XO_DPI = 200.0 - _FOCUS_LINE_WIDTH = 2 _TAB_CURVATURE = 1 @@ -110,7 +105,7 @@ MEDIUM_ICON_SIZE = zoom(55 * 1.5) LARGE_ICON_SIZE = zoom(55 * 2.0) XLARGE_ICON_SIZE = zoom(55 * 2.75) -FONT_SIZE = zoom(7 * _XO_DPI / _get_screen_dpi()) +FONT_SIZE = zoom(7) FONT_NORMAL = Font('Bitstream Vera Sans %d' % FONT_SIZE) FONT_BOLD = Font('Bitstream Vera Sans bold %d' % FONT_SIZE) FONT_NORMAL_H = zoom(24) -- cgit v0.9.1