From: Robin Dunn Date: Thu, 8 Jan 2004 21:37:45 +0000 (+0000) Subject: Set the DC font before drawing the label X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6dfb13b1b7122da1700ca915ecf9d1047492c470 Set the DC font before drawing the label git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/colourselect.py b/wxPython/wx/lib/colourselect.py index b96dadd29e..6fb0bd7e77 100644 --- a/wxPython/wx/lib/colourselect.py +++ b/wxPython/wx/lib/colourselect.py @@ -100,6 +100,7 @@ class ColourSelect(wx.BitmapButton): bmp = wx.EmptyBitmap(width-bdr, height-bdr) dc = wx.MemoryDC() dc.SelectObject(bmp) + dc.SetFont(self.GetFont()) label = self.GetLabel() # Just make a little colored bitmap dc.SetBackground(wx.Brush(self.colour))