Allow displaying Japanese character with wxMotif/ANSI under a
Japanese EUC-JP locale: - add a #define (wxMOTIF_NEW_FONT_HANDLING) defaulting to off - factor the code for getting text extents in a central wxGetTextExtent function - when the new font handling is enabled load a fontset instead of a single font. For non-Japanese locales this should load a fontset containing a single font. - on a Japanese locale set the default point size to 15: the Japanese fonts I have are much more readable like this. - do not set the wordwrap property for multiline wxTextCtrl with OpenMotif 2.1, otherwise it crashes when text is added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -131,8 +131,10 @@ bool MyApp::OnInit()
|
||||
wxLANGUAGE_CZECH,
|
||||
wxLANGUAGE_POLISH,
|
||||
wxLANGUAGE_SWEDISH,
|
||||
#if wxUSE_UNICODE
|
||||
#if wxUSE_UNICODE || defined(__WXMOTIF__)
|
||||
wxLANGUAGE_JAPANESE,
|
||||
#endif
|
||||
#if wxUSE_UNICODE
|
||||
wxLANGUAGE_GEORGIAN,
|
||||
#endif
|
||||
wxLANGUAGE_ENGLISH,
|
||||
@@ -153,8 +155,10 @@ bool MyApp::OnInit()
|
||||
_T("Czech"),
|
||||
_T("Polish"),
|
||||
_T("Swedish"),
|
||||
#if wxUSE_UNICODE
|
||||
#if wxUSE_UNICODE || defined(__WXMOTIF__)
|
||||
_T("Japanese"),
|
||||
#endif
|
||||
#if wxUSE_UNICODE
|
||||
_T("Georgian"),
|
||||
#endif
|
||||
_T("English"),
|
||||
|
Reference in New Issue
Block a user