From 0f1adfe1de7f51562a4429c47f0674becd8b5f56 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 28 Feb 2007 14:47:35 +0100 Subject: [PATCH] Specify font size in pixels, not in points. --- sugar/graphics/font.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/graphics/font.py b/sugar/graphics/font.py index aa4f2dcb..bf532694 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):