are going to be using it in objects that need to draw text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38426
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
a_tick = self.ticks[0]
size = a_tick.GetMaxSize(scale)
a_tick = self.ticks[0]
size = a_tick.GetMaxSize(scale)
- self.font.SetPointSize(size)
maxsize = size
# Try to find a 'good' max size for text-based ticks.
if a_tick.text is not None:
maxsize = size
# Try to find a 'good' max size for text-based ticks.
if a_tick.text is not None:
+ self.font.SetPointSize(size)
dc = wx.MemoryDC()
dc.SelectObject(wx.EmptyBitmap(*clocksize.Get()))
dc.SetFont(self.font)
dc = wx.MemoryDC()
dc.SelectObject(wx.EmptyBitmap(*clocksize.Get()))
dc.SetFont(self.font)