From 4676bf91fcb79a602110f1fe6c6a5759eab3502f Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 03 Dec 2010 18:36:43 +0000 Subject: Implement change the size, font and attributes in the Text Tool. - OLPC #2501 and OLPC #3707 --- (limited to 'Area.py') diff --git a/Area.py b/Area.py index faffe45..23841c3 100644 --- a/Area.py +++ b/Area.py @@ -178,7 +178,10 @@ class Area(gtk.DrawingArea): 'rectangle': False, 'ellipse': False} - self.font = pango.FontDescription('Sans 9') + self.font_description = pango.FontDescription() + self.font_description.set_family('Sans') + self.font_description.set_size(12) + self._set_selection_bounds(0, 0, 0, 0) #start of UNDO and REDO -- cgit v0.9.1