diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-28 20:04:26 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-28 20:04:26 (GMT) |
commit | 6c16653173a780ff3234d6ccd2f5f2dd83c61da1 (patch) | |
tree | dfc5e9c3e6ce9ddfe11b223962eaff5b823a8b9b /sugar/graphics/font.py | |
parent | 1b869a04f8571fd2bb501d80667b5269db300b56 (diff) |
Convert points correctly to device. Tweak zoom factor logic a bit
Diffstat (limited to 'sugar/graphics/font.py')
-rw-r--r-- | sugar/graphics/font.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/graphics/font.py b/sugar/graphics/font.py index bf53269..6750f87 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 %dpx' % units.points_to_pixels(9), - 'default-bold' : 'Bitstream Vera Sans bold %dpx' % units.points_to_pixels(9) + 'default' : 'Bitstream Vera Sans %d' % units.points_to_device(9), + 'default-bold' : 'Bitstream Vera Sans bold %d' % units.points_to_device(9) } class Font(object): |