dabo Commit
Revision 6563
Date: 2011-04-15 15:45:56 -0700 (Fri, 15 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6563

Changed:
U   trunk/ide/ReportDesigner.py

Log:
Bold/Italic wasn't being shown on the designer surface. Fixed.


Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2011-04-15 22:42:02 UTC (rev 6562)
+++ trunk/ide/ReportDesigner.py 2011-04-15 22:45:56 UTC (rev 6563)
@@ -1401,20 +1401,16 @@
 
                        z = self.Parent.Zoom
 
+                       fontBold = "Bold" in fontName
+                       fontItalic = "Oblique" in fontName or "Italic" in 
fontName
                        if "helvetica" in fontName.lower():
                                fontFamily = wx.MODERN
-                               fontBold = "bold" in fontName.lower()
-                               fontItalic = "oblique" in fontName.lower()
                                fontName = "Helvetica"
                        elif "times" in fontName.lower():
                                fontFamily = wx.ROMAN
-                               fontBold = "bold" in fontName.lower()
-                               fontItalic = "italic" in fontName.lower()
                                fontName = "Times"
                        elif "courier" in fontName.lower():
                                fontFamily = wx.TELETYPE
-                               fontBold = "bold" in fontName.lower()
-                               fontItalic = "oblique" in fontName.lower()
                                fontName = "Courier"
                        elif "symbol" in fontName.lower():
                                fontFamily = wx.DEFAULT
@@ -1429,8 +1425,6 @@
                        else:
                                fontName = "Helvetica"
                                fontFamily = wx.MODERN
-                               fontBold = False
-                               fontItalic = False
 
                        # Can't seem to get different faces represented
                        font = dabo.ui.dFont()



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to