Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - torhans

Pages: [1]
1
OpenZaurus/Opie/Qtopia / Scaling Fonts
« on: January 09, 2005, 03:54:30 am »
Hi

I'm trying to develop an application that need to show some Japanese text, in a QLineEdit. Unfortunately all the available Japanese/unicode fonts are so small that they can barely be read. However I can see that some of the applications on my Zaurus are able to show much larger Japanese characters than I can (though not in a LineEdit).

How is that achieved?

Another thing is, when using (eg.) QFont::smoothSizes("lcfont","Regular") on the Zaurus the sizes seems to be 10 times larger then expected. Ranging from 100 to 720. Any idea why that is?

I'm using Qtopia 1.7 and SharpROM on a sl-c750.

Thanks
Torben

2
OpenZaurus/Opie/Qtopia / Japanese
« on: January 09, 2005, 03:37:04 am »
Hi

I'm successfully using the following, but there might be a better way.


#include <qtextstream.h>
#include <qstring.h>
...
FILE* writeFile;
QString strJapanese;
...
QTextStream outstream(writeFile,IO_WriteOnly);
outstream.setEncoding(QTextStream::UnicodeUTF8);
outstream  << strJapanese << endl;
...

The encoding of the QString in handled internally and you need not to concern youself about it.

Regards
Torben

Pages: [1]