Author: dmeyer
Date: Fri Oct 12 14:07:57 2007
New Revision: 2851

Log:
make set_font work

Modified:
   trunk/imlib2/src/image.py

Modified: trunk/imlib2/src/image.py
==============================================================================
--- trunk/imlib2/src/image.py   (original)
+++ trunk/imlib2/src/image.py   Fri Oct 12 14:07:57 2007
@@ -425,10 +425,10 @@
                  'font_or_fontname' is already a Font instance, it is simply
                  returned back to the caller.
         """
-        if type(font) in types.StringTypes:
-            self.font = Font(font)
+        if type(font_or_fontname) in types.StringTypes:
+            self.font = Font(font_or_fontname)
         else:
-            self.font = font
+            self.font = font_or_fontname
         return self.font
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to