projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update documentation about custom schemes and virtual file systems.
[wxWidgets.git]
/
src
/
mgl
/
fontenum.cpp
diff --git
a/src/mgl/fontenum.cpp
b/src/mgl/fontenum.cpp
index 2bc8300d3315c39c9e50e7736bc61d66c06214c3..5659d4b64332401378fe574d08a4217f1d5cf70e 100644
(file)
--- a/
src/mgl/fontenum.cpp
+++ b/
src/mgl/fontenum.cpp
@@
-22,16
+22,17
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
+#include "wx/fontenum.h"
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
+ #include "wx/string.h"
+ #include "wx/utils.h"
#endif
#endif
-#include "wx/string.h"
-#include "wx/utils.h"
-
-#include "wx/fontenum.h"
#include "wx/encinfo.h"
#include "wx/fontutil.h"
#include "wx/encinfo.h"
#include "wx/fontutil.h"
+#include "wx/private/fontmgr.h"
#include <mgraph.h>
#include <mgraph.h>
@@
-48,19
+49,19
@@
bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
bool fixedWidthOnly)
{
bool found = false;
bool fixedWidthOnly)
{
bool found = false;
-
wxMGLFontFamilyList *list = wxTheFontsManager->GetFamilyList
();
- wx
MGLFontFamily
List::Node *node;
- wx
MGLFontFamily
*f = NULL;
+
const wxFontBundleList& list = wxFontsManager::Get()->GetBundles
();
+ wx
FontBundle
List::Node *node;
+ wx
FontBundle
*f = NULL;
wxNativeEncodingInfo info;
if ( encoding != wxFONTENCODING_SYSTEM )
wxGetNativeFontEncoding(encoding, &info);
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();
{
f = node->GetData();
info.facename = f->GetName();
- if ( (!fixedWidthOnly || f->
GetInfo()->isFixed
) &&
+ if ( (!fixedWidthOnly || f->
IsFixed()
) &&
(encoding == wxFONTENCODING_SYSTEM || wxTestFontEncoding(info)) )
{
found = true;
(encoding == wxFONTENCODING_SYSTEM || wxTestFontEncoding(info)) )
{
found = true;