Return the correct encoding for X font spec construction
authorMattia Barbon <mbarbon@cpan.org>
Sat, 30 Jul 2005 17:26:06 +0000 (17:26 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 30 Jul 2005 17:26:06 +0000 (17:26 +0000)
under Japanese locale.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/fontutil.cpp

index 758226308b56ea1d3865413316cb773357f0e474..2a7ad2ea3c00198f5a66013d7c8a2382300dad66 100644 (file)
@@ -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("*");