X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad9835c97c10c0d7de345e3a7a7c0fc2776eb2cb..99d21c0e1f8d87570702c52dccd3ad698f0a0931:/src/mgl/fontenum.cpp diff --git a/src/mgl/fontenum.cpp b/src/mgl/fontenum.cpp index 2bc8300d33..5659d4b643 100644 --- a/src/mgl/fontenum.cpp +++ b/src/mgl/fontenum.cpp @@ -22,16 +22,17 @@ // headers // ---------------------------------------------------------------------------- +#include "wx/fontenum.h" + #ifndef WX_PRECOMP #include "wx/dynarray.h" + #include "wx/string.h" + #include "wx/utils.h" #endif -#include "wx/string.h" -#include "wx/utils.h" - -#include "wx/fontenum.h" #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;