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:
Robin Dunn 2004-02-26 20:43:47 +00:00
parent e2bbfc8f05
commit fda1446558

View File

@ -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):
#