Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-28 13:47:35 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-28 13:47:35 (GMT)
commit0f1adfe1de7f51562a4429c47f0674becd8b5f56 (patch)
tree658c25a63d93c7995d9ee52b94833f078a318bcc /sugar/graphics
parentb473b4f17cd65115fc4fadd8a71d30fef5066cb5 (diff)
Specify font size in pixels, not in points.
Diffstat (limited to 'sugar/graphics')
-rw-r--r--sugar/graphics/font.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/graphics/font.py b/sugar/graphics/font.py
index aa4f2dc..bf53269 100644
--- a/sugar/graphics/font.py
+++ b/sugar/graphics/font.py
@@ -3,8 +3,8 @@ import pango
from sugar.graphics import units
_system_fonts = {
- 'default' : 'Bitstream Vera Sans %d' % units.points_to_pixels(9),
- 'default-bold' : 'Bitstream Vera Sans bold %d' % units.points_to_pixels(9)
+ 'default' : 'Bitstream Vera Sans %dpx' % units.points_to_pixels(9),
+ 'default-bold' : 'Bitstream Vera Sans bold %dpx' % units.points_to_pixels(9)
}
class Font(object):