Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » It's suspected to be an issue with Font.
Re: It's suspected to be an issue with Font. [message #32311 is a reply to message #32309] |
Sat, 07 May 2011 20:41 |
Lance
Messages: 527 Registered: March 2007
|
Contributor |
|
|
Sorry for throwing too much at you. Here I discovered another issue which I believe is related to Upp way of interpreting UTF-8 characters.
This special Chinese punctuation mark, "£¬"(wide comma,"\357\274\214"), will not display and it will cause otherwise displayable Chinese characters following it disappear.
Here is a test program:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
struct MyApp : TopWindow {
virtual void Paint(Draw& w) {
const char * texts[]={
"\346\234\213", //PENG
"\345\217\213", //YOU
"\346\234\213\357\274\214\345\217\213",//PENG CHINESECOMMA YOU
"\346\234\213\345\217\213\357\274\214\346\234\213\345\217\213" // PENG YOU CHINESECOMMA PENG YOU
};
w.DrawRect(GetSize(), White);
for(int i=0; i<4; ++i)
w.DrawText(10, 10+i*30, texts[i]);
}
};
GUI_APP_MAIN
{
MyApp().Run();
}
Output is something like:
A second issue: On Ubuntu, I applied the above changes to font substitution table and recompiled theide, the Chinese font displays perfect, but this time the input method won't work. Chinese characters entered in the code editor are displayed as narrow blanks, when copy&pasting the blanks to gedit, gedit also display blanks; copy good text from web page or gedit to the code editor works fine.
[Updated on: Sat, 07 May 2011 23:30] Report message to a moderator
|
|
|
|
|
It's suspected to be an issue with Font.
By: Lance on Fri, 18 March 2011 23:50
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Sun, 10 April 2011 14:42
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Tue, 12 April 2011 14:03
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Tue, 12 April 2011 15:19
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Sat, 16 April 2011 20:54
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Sat, 16 April 2011 21:02
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Sat, 16 April 2011 21:21
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Wed, 20 April 2011 22:07
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Wed, 20 April 2011 22:30
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Sat, 30 April 2011 10:37
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sun, 01 May 2011 17:23
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sun, 01 May 2011 17:35
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sun, 01 May 2011 19:41
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Mon, 02 May 2011 07:07
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Mon, 02 May 2011 15:58
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Mon, 02 May 2011 16:11
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Mon, 02 May 2011 20:07
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Tue, 03 May 2011 14:48
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Tue, 03 May 2011 14:50
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Tue, 03 May 2011 14:52
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Thu, 05 May 2011 18:46
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Fri, 06 May 2011 10:05
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Fri, 06 May 2011 10:36
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Fri, 06 May 2011 14:59
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Fri, 06 May 2011 17:51
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Fri, 06 May 2011 19:18
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 03:42
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 04:00
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 05:19
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 06:01
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Sat, 07 May 2011 08:30
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 14:59
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 15:29
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 17:39
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 19:47
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 20:41
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 23:10
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 07 May 2011 23:25
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Mon, 09 May 2011 05:55
|
|
|
Re: It's suspected to be an issue with Font.
By: mirek on Fri, 13 May 2011 12:30
|
|
|
Re: It's suspected to be an issue with Font.
By: Lance on Sat, 14 May 2011 23:54
|
Goto Forum:
Current Time: Sun Apr 28 18:53:21 CEST 2024
Total time taken to generate the page: 0.04629 seconds
|