Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19055/src/gui
Modified Files:
wxTextDialog.cpp
Log Message:
tweak the font used in this window to be readable under Windows
Index: wxTextDialog.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxTextDialog.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -u -2 -r1.14 -r1.15
--- wxTextDialog.cpp 24 Aug 2006 17:58:37 -0000 1.14
+++ wxTextDialog.cpp 9 Sep 2006 22:25:21 -0000 1.15
@@ -28,4 +28,5 @@
#include <wx/button.h>
#include <wx/filedlg.h>
+ #include <wx/settings.h>
#include <wx/textctrl.h>
#endif // USE_PCH
@@ -160,8 +161,19 @@
// least show something to the user while using the default UTF-8 encoding
// of GTK+ 2 could result in nothing being shown at all
- m_text->SetFont(wxFont(wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE,
- wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL,
- false /* not underlined */, wxEmptyString,
- wxFONTENCODING_ISO8859_1));
+ //
+ // also use wxSYS_ANSI_VAR_FONT and not wxSYS_DEFAULT_GUI_FONT (also used by
+ // wxNORMAL_FONT) because its size is too small for fixed width font under
+ // Windows currently
+ m_text->SetFont(wxFont
+ (
+ wxSystemSettings::GetFont(wxSYS_ANSI_VAR_FONT).
+ GetPointSize(),
+ wxFONTFAMILY_TELETYPE,
+ wxFONTSTYLE_NORMAL,
+ wxFONTWEIGHT_NORMAL,
+ false /* not underlined */,
+ wxEmptyString,
+ wxFONTENCODING_ISO8859_1
+ ));
// now that the encoding is set, we can show the text
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates