]> git.saurik.com Git - wxWidgets.git/commitdiff
Switched antialiasing off since GetTextExtent doesn't work properly
authorJulian Smart <julian@anthemion.co.uk>
Fri, 21 Oct 2005 16:31:07 +0000 (16:31 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 21 Oct 2005 16:31:07 +0000 (16:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/richtext/richtext.cpp
src/richtext/richtextbuffer.cpp

index c4c1cd66e934f846277cb3019c53309dc6b300d4..ad77d07aff1366cc7a23f90bc8d493dc2c20256e 100644 (file)
@@ -474,7 +474,12 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
     wxFont italicFont = wxFont(12, wxROMAN, wxITALIC, wxNORMAL);
 
     m_richTextCtrl = new wxRichTextCtrl(splitter, wxID_ANY, wxDefaultPosition, wxSize(200, 200), wxVSCROLL|wxHSCROLL|wxNO_BORDER);
-    m_richTextCtrl->SetFont(wxFont(12, wxROMAN, wxNORMAL, wxNORMAL));
+    wxFont font(12, wxROMAN, wxNORMAL, wxNORMAL);
+
+#ifdef __WXMAC__
+    font.SetNoAntiAliasing(true);
+#endif
+    m_richTextCtrl->SetFont(font);
 
     wxRichTextStyleListBox* styleListBox = new wxRichTextStyleListBox(splitter, wxID_ANY);
     splitter->SplitVertically(m_richTextCtrl, styleListBox, 400);
index 9f180d44215350260dd0f3d0f2ae62f8b610cb03..ffe737397cc9cb58b7d2bc43f00e6ec4b1f9914e 100644 (file)
@@ -4776,6 +4776,9 @@ void wxRichTextAttr::CopyTo(wxTextAttrEx& attr) const
 wxFont wxRichTextAttr::CreateFont() const
 {
     wxFont font(m_fontSize, wxDEFAULT, m_fontStyle, m_fontWeight, m_fontUnderlined, m_fontFaceName);
+#ifdef __WXMAC__
+    font.SetNoAntiAliasing(true);
+#endif
     return font;
 }