// headers
// ----------------------------------------------------------------------------
-#include "wx/dynarray.h"
-#include "wx/string.h"
-#include "wx/utils.h"
-
#include "wx/fontenum.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dynarray.h"
+ #include "wx/string.h"
+ #include "wx/utils.h"
+#endif
+
#include "wx/encinfo.h"
#include "wx/fontutil.h"
+#include "wx/private/fontmgr.h"
#include <mgraph.h>
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;