[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Possible problem: size of font in qt3beta6 ??
From: thil <lor.thi () libertysurf ! fr>
Date: 2001-10-08 23:13:48
[Download RAW message or body]
qt3 maximise the size of the font,
but the ratio: size of font/size of logical coord is not te same than in qt2
here the code:
void ConnectWidget::paintEvent( QPaintEvent * )
{
QPainter paint( this );
QFont font;
font.setFamily( "Arial" );
font.setPointSize(10);
paint.setWindow(0, 0, 100, 100);
paint.setFont( font );
paint.drawText( 0, 10, "Drag and Drop WMF file on the viewer !" );
}
If you change setPointSize(100) and setWindow(0,0,1000,1000)
I don't think the result is correct
(the size seem maximize to 50 for arial on my system)
(possible confusion between logical point size and X size ??)
I'm not sure
bye.
_______________________________________________
Koffice-devel mailing list
Koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic