X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ab460e7d62b52b105b3dc0bbdd36cebc14fb4b..236566738198d598fab7ac15c78007c1734ce449:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index 308a36e837..bac473af42 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -24,11 +24,12 @@ #pragma hdrstop #endif +#include "wx/font.h" + #ifndef WX_PRECOMP #include "wx/list.h" #include "wx/utils.h" #include "wx/app.h" - #include "wx/font.h" #include "wx/log.h" #include "wx/encinfo.h" #endif // WX_PRECOMP @@ -413,6 +414,14 @@ void wxFontRefData::Free() void wxNativeFontInfo::Init() { wxZeroMemory(lf); + + // we get better font quality if we use this instead of DEFAULT_QUALITY + // apparently without any drawbacks +#ifdef __WXWINCE__ + lf.lfQuality = CLEARTYPE_QUALITY; +#else + lf.lfQuality = PROOF_QUALITY; +#endif } int wxNativeFontInfo::GetPointSize() const @@ -573,7 +582,7 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family) BYTE ff_family; wxArrayString facename; - // the list of fonts associated with a family was partially + // the list of fonts associated with a family was partially // taken from http://www.codestyle.org/css/font-family switch ( family ) @@ -629,15 +638,15 @@ void wxNativeFontInfo::SetFamily(wxFontFamily family) // is returned as default GUI font for compatibility int verMaj; ff_family = FF_SWISS; - if(wxGetOsVersion(&verMaj) == wxWINDOWS_NT && verMaj >= 5) + if(wxGetOsVersion(&verMaj) == wxOS_WINDOWS_NT && verMaj >= 5) facename.Add(_T("MS Shell Dlg 2")); else facename.Add(_T("MS Shell Dlg")); // Quoting the MSDN: - // "MS Shell Dlg is a mapping mechanism that enables - // U.S. English Microsoft Windows NT, and Microsoft Windows 2000 to - // support locales that have characters that are not contained in code + // "MS Shell Dlg is a mapping mechanism that enables + // U.S. English Microsoft Windows NT, and Microsoft Windows 2000 to + // support locales that have characters that are not contained in code // page 1252. It is not a font but a face name for a nonexistent font." } } @@ -1095,4 +1104,3 @@ bool wxFont::IsFixedWidth() const return wxFontBase::IsFixedWidth(); } -