+ // we only support UTF-8 and system (which means "use any"):
+ if ( encoding != wxFONTENCODING_SYSTEM && encoding != wxFONTENCODING_UTF8 )
+ return false;
+
+ bool found = false;
+ const wxFontBundleList& list = wxFontsManager::Get()->GetBundles();
+
+ for ( wxFontBundleList::const_iterator f = list.begin(); f != list.end(); ++f )
+ {
+ if ( fixedWidthOnly && !(*f)->IsFixed() )
+ continue;
+
+ found = true;
+ if ( !OnFacename((*f)->GetName()) )
+ break; // OnFacename() requests us to stop enumeration
+ }
+
+ return found;