Specify font size in pixels, not in points.

This commit is contained in:
Tomeu Vizoso 2007-02-28 14:47:35 +01:00
parent b473b4f17c
commit 0f1adfe1de

View File

@ -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):