X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..2028c33ab5a39a12bd410ac953731a56ad6377ba:/src/mgl/fontenum.cpp?ds=sidebyside diff --git a/src/mgl/fontenum.cpp b/src/mgl/fontenum.cpp index c3a523e17b..5659d4b643 100644 --- a/src/mgl/fontenum.cpp +++ b/src/mgl/fontenum.cpp @@ -32,6 +32,7 @@ #include "wx/encinfo.h" #include "wx/fontutil.h" +#include "wx/private/fontmgr.h" #include @@ -48,19 +49,19 @@ bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly) { bool found = false; - wxMGLFontFamilyList *list = wxTheFontsManager->GetFamilyList(); - wxMGLFontFamilyList::Node *node; - wxMGLFontFamily *f = NULL; + const wxFontBundleList& list = wxFontsManager::Get()->GetBundles(); + wxFontBundleList::Node *node; + wxFontBundle *f = NULL; wxNativeEncodingInfo info; if ( encoding != wxFONTENCODING_SYSTEM ) wxGetNativeFontEncoding(encoding, &info); - for (node = list->GetFirst(); node; node = node->GetNext()) + for (node = list.GetFirst(); node; node = node->GetNext()) { f = node->GetData(); info.facename = f->GetName(); - if ( (!fixedWidthOnly || f->GetInfo()->isFixed) && + if ( (!fixedWidthOnly || f->IsFixed()) && (encoding == wxFONTENCODING_SYSTEM || wxTestFontEncoding(info)) ) { found = true;