Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-12-03 18:36:43 (GMT)
committer Gonzalo Odiard <godiard@sugarlabs.org>2010-12-03 18:36:43 (GMT)
commit4676bf91fcb79a602110f1fe6c6a5759eab3502f (patch)
tree7a8f7f77e770362930f8c0b60048480069fda51b /Area.py
parentbcc5e519a708de0bef82fbbee7def5c557a376f5 (diff)
Implement change the size, font and attributes in the Text Tool. - OLPC #2501 and OLPC #3707
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py5
1 files changed, 4 insertions, 1 deletions
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