From fda1446558bf542c3d37ec33e47330783763f76e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 26 Feb 2004 20:43:47 +0000 Subject: [PATCH] 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 --- wxPython/wx/lib/editor/editor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wxPython/wx/lib/editor/editor.py b/wxPython/wx/lib/editor/editor.py index 3be1a8ce71..ac2ec28545 100644 --- a/wxPython/wx/lib/editor/editor.py +++ b/wxPython/wx/lib/editor/editor.py @@ -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): # -- 2.49.0