Don't use AA fonts to avoide measurment problem on wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e2bbfc8f05
commit
fda1446558
@ -131,9 +131,12 @@ class Editor(wx.ScrolledWindow):
|
||||
|
||||
def NiceFontForPlatform(self):
|
||||
if wx.Platform == "__WXMSW__":
|
||||
return wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL)
|
||||
font = wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL)
|
||||
else:
|
||||
return wx.Font(12, wx.MODERN, wx.NORMAL, wx.NORMAL, False)
|
||||
font = wx.Font(12, wx.MODERN, wx.NORMAL, wx.NORMAL, False)
|
||||
if wx.Platform == "__WXMAC__":
|
||||
font.SetNoAntiAliasing()
|
||||
return font
|
||||
|
||||
def UnixKeyHack(self, key):
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user