X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..20e05ffbd3eff02a4c643e412d4f600cdea26952:/src/common/gdicmn.cpp?ds=sidebyside diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 106d32a3ef..93f757164f 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -41,7 +41,13 @@ #endif #ifdef __WXMOTIF__ +#ifdef __VMS__ +#pragma message disable nosimpint +#endif #include +#ifdef __VMS__ +#pragma message enable nosimpint +#endif #endif #if !USE_SHARED_LIBRARY @@ -585,7 +591,7 @@ void wxFontList::RemoveFont (wxFont * font) } wxFont *wxFontList:: - FindOrCreateFont (int PointSize, int FamilyOrFontId, int Style, int Weight, bool underline, const wxString& Face) + FindOrCreateFont (int PointSize, int FamilyOrFontId, int Style, int Weight, bool underline, const wxString& Face, wxFontEncoding encoding) { for (wxNode * node = First (); node; node = node->Next ()) { @@ -604,11 +610,12 @@ wxFont *wxFontList:: #else each_font->GetFamily() == FamilyOrFontId && #endif - ((each_font->GetFaceName() == wxT("")) || each_font->GetFaceName() == Face)) + ((each_font->GetFaceName() == wxT("")) || each_font->GetFaceName() == Face) && + (encoding == wxFONTENCODING_DEFAULT || each_font->GetEncoding() == encoding)) //#endif return each_font; } - wxFont *font = new wxFont (PointSize, FamilyOrFontId, Style, Weight, underline, Face); + wxFont *font = new wxFont (PointSize, FamilyOrFontId, Style, Weight, underline, Face, encoding); font->SetVisible(TRUE); return font; }