// Created: 05.11.99
// RCS-ID: $Id$
// Copyright: (c) Vadim Zeitlin
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
wxString wxNativeFontInfo::ToString() const
{
- wxString tmp = wxGTK_CONV_BACK( pango_font_description_to_string( description ) );
+ char *str = pango_font_description_to_string( description );
+ wxString tmp = wxGTK_CONV_BACK( str );
+ g_free( str );
return tmp;
}
#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)