Hi everyone,
I have an issue which I am not able to overcome. It's about fonts in Qt simulator and S60 device.
What I'm doing is drawing a text on a QPainter with drawText method. I set fonts with setFont method and I specify Series 60 Sans font. The code looks something like this:
painter
->setFont
( QFont( "Series 60 Sans",
36,
QFont::Bold ) );
painter->drawText( 0,0, "Dear John" );
}
void MyElement::paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget ) {
painter->setFont( QFont( "Series 60 Sans", 36, QFont::Bold ) );
painter->drawText( 0,0, "Dear John" );
}
To copy to clipboard, switch view to plain text mode
The thing is that what I see in Qt Simulator is completely different than what I see on device. What I can notice is that fonts have completely different sizes, different ascend, descend ...
I assume fonts are not the same, at least I am leaning in that direction.
I'm using N96 mini to test on S60 device with fonts installed on it,
and I installed fonts on my PC, font version on PC is: Series 60 Sans Regular (TrueType). version 4.04, Monotype.
Is this behavior normal or at least expectable? Or what am I doing wrong?
If fonts are incorrect, where can I get correct ones? I tried S60 SDKs nothing helps. And if it is important, I'm using Windows XP SP2 and Nokia Qt SDK 1.0.
Any help would be appritiated, otherwise it's time to visit mental institution.
Bookmarks