code: def FontForLabels(self, dc):
          ''' Return the default GUI font, scaled for printing if necessary. '''
          font = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)
          scale = dc.GetPPI()[0] / wx.ScreenDC().GetPPI()[0]
          font.SetPointSize(scale*font.GetPointSize())
          return fonf FontForLabels(self, dc):
          ''' Return the default GUI font, scaled for printing if necessary. '''
          font = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT)
          scale = dc.GetPPI()[0] / wx.ScreenDC().GetPPI()[0]
          font.SetPointSize(scale*font.GetPointSize())
          return font
docs: Return the default GUI font, scaled for printing if necessary.