use gdk_fontset_load() instead of gdk_font_load() for better Japanese support (patch 698558)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2003-07-10 10:02:46 +00:00
parent 540b6b097f
commit 341baa4c71

View File

@ -235,7 +235,10 @@ static wxHashTable *g_fontHash = (wxHashTable*) NULL;
#elif defined(__WXGTK__)
wxNativeFont wxLoadFont(const wxString& fontSpec)
{
return gdk_font_load( wxConvertWX2MB(fontSpec) );
// use gdk_fontset_load() instead of gdk_font_load() because otherwise
// we have problems with Japanese (not terribly precise, I know, but
// this is all the patch said)
return gdk_fontset_load( wxConvertWX2MB(fontSpec) );
}
inline void wxFreeFont(wxNativeFont font)