]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use AA fonts to avoide measurment problem on wxMac
authorRobin Dunn <robin@alldunn.com>
Thu, 26 Feb 2004 20:43:47 +0000 (20:43 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 26 Feb 2004 20:43:47 +0000 (20:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/editor/editor.py

index 3be1a8ce713b78e25f012cd77bba0ff218a4ca06..ac2ec28545104067ac10b6f4f7d58ad6f5072870 100644 (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):
         #