1. wxFontMapper almost finished
2. font helper functions are now in separate files, not utilsunx.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "wx/utils.h"
|
||||
|
||||
#include "wx/fontenum.h"
|
||||
#include "wx/fontutil.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
@@ -61,12 +62,14 @@ static char **CreateFontList(wxChar spacing,
|
||||
wxFontEncoding encoding,
|
||||
int *nFonts)
|
||||
{
|
||||
wxString xencoding, xregistry;
|
||||
wxGetXFontEncoding(encoding, &xregistry, &xencoding);
|
||||
wxNativeEncodingInfo info;
|
||||
wxGetNativeFontEncoding(encoding, &info);
|
||||
|
||||
wxString pattern;
|
||||
pattern.Printf(wxT("-*-*-*-*-*-*-*-*-*-*-%c-*-%s-%s"),
|
||||
spacing, xregistry.c_str(), xencoding.c_str());
|
||||
spacing,
|
||||
info.xregistry.c_str(),
|
||||
info.xencoding.c_str());
|
||||
|
||||
// get the list of all fonts
|
||||
return XListFonts((Display *)wxGetDisplay(), pattern.mb_str(), 32767, nFonts);
|
||||
|
Reference in New Issue
Block a user