PDA

View Full Version : Display Chinese characters in Xephyr/Maemo 5?


magnuslu
02-07-2010, 07:28 AM
Hi,

I have a Qt app which runs fine on Windows. It stores Chinese characters in a SQLITE database and I perfectly able to read and write them. Now I am porting this application to Maemo 5. I have set up my development environment with Scratchbox and Xephyr. In my application I read from the database first to a QString variable that populates a QTextEdit widget. In the ui file I used font family 'MS Song', 'Times New Roman' (which worked on Windows) and none. The characters are always displayed as a rectangle in my app. I don't have a N900 to test it on, so I don't know if it is only an emulator (Xephyr) issue (that I want to solve anyway) or if it will be there also on the device. Is it a matter of installing fonts to Xephyr? How do I do that?

Please note that I have qDebug statements in my code and the characters appear correctly in my Scratchbox terminal window.

I've posted this on qtforum.org as well with no replies so far...

Regards,

Magnus

julieshort
02-07-2010, 11:23 AM
As someone who is learning Mandarin, I would appreciate the opportunity to be able to type the characters on my N900. So any progress on the development of this package would be fantastic.
Although I am not able to help with the development I am interested to follow progress.

pycage
02-07-2010, 12:16 PM
The SDK is missing the fonts. The device has them and displays Chinese just fine.

magnuslu
02-20-2010, 05:29 PM
I've now got my N900 device and I can confirm that the Chinese characters show up just right.