Author: dmeyer
Date: Sun Jun 18 12:04:23 2006
New Revision: 1547
Modified:
trunk/imlib2/src/font.py
Log:
make it possible to change the size
Modified: trunk/imlib2/src/font.py
==============================================================================
--- trunk/imlib2/src/font.py (original)
+++ trunk/imlib2/src/font.py Sun Jun 18 12:04:23 2006
@@ -106,6 +106,15 @@
self.color = color
+ def set_size(self, size):
+ """
+ Sets a new font size.
+ """
+ fontdesc = self.fontname + '/' + str(size)
+ self._font = _Imlib2.load_font(fontdesc)
+ self.size = int(size)
+
+
def set_style(self, style, shadow=(0,0,0,0), outline=(0,0,0,0),
glow=(0,0,0,0), glow2=(0,0,0,0)):
"""
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog