X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6185050104d7782a51b9e9a7cac427764dcea130..f9dae7798b164a5f4abc85d16f49cabd4e0980c0:/src/unix/fontutil.cpp diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index beac3babe4..b1e8be165a 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -6,7 +6,7 @@ // Created: 05.11.99 // RCS-ID: $Id$ // Copyright: (c) Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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)