Author: bugman Date: Tue Dec 28 16:27:44 2010 New Revision: 11993 URL: http://svn.gna.org/viewcvs/relax?rev=11993&view=rev Log: The font setting is more regular in the about base class methods, and the font is set for the HTML. Modified: branches/bieri_gui/gui_bieri/about.py Modified: branches/bieri_gui/gui_bieri/about.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/about.py?rev=11993&r1=11992&r2=11993&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/about.py (original) +++ branches/bieri_gui/gui_bieri/about.py Tue Dec 28 16:27:44 2010 @@ -107,6 +107,9 @@ # The HTML renderer. self.html = wx.html.HtmlDCRenderer() + # Set the font. + self.html.SetFonts("Roman", "Courier") + # Set the DC. self.html.SetDC(self.dc, 1.0) @@ -167,7 +170,7 @@ self.offset(y) - def draw_wrapped_text(self, text, text_size=10, width=69, spacer=10): + def draw_wrapped_text(self, text, point_size=10, family=wx.FONTFAMILY_ROMAN, width=69, spacer=10): """Generic method for drawing wrapped text in the relax about widget. @param text: The text to wrap and draw. @@ -177,7 +180,7 @@ """ # Set the font. - font = wx.Font(text_size, wx.FONTFAMILY_ROMAN, wx.NORMAL, wx.NORMAL) + font = wx.Font(point_size, family, wx.NORMAL, wx.NORMAL) self.dc.SetFont(font) # Wrap the text.