From: Mattia Barbon Date: Sat, 30 Jul 2005 17:26:06 +0000 (+0000) Subject: Return the correct encoding for X font spec construction X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d946915c2039f02793670f91d707bee26cd6f88e?ds=inline Return the correct encoding for X font spec construction under Japanese locale. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index 758226308b..2a7ad2ea3c 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -759,6 +759,12 @@ bool wxGetNativeFontEncoding(wxFontEncoding encoding, } break; + case wxFONTENCODING_EUC_JP: + case wxFONTENCODING_SHIFT_JIS: + info->xregistry = "jis*"; + info->xencoding = "*"; + break; + case wxFONTENCODING_SYSTEM: info->xregistry = info->xencoding = wxT("*");