Qt-interest Archive, October 2001
Re: Font problem with Qt3.0 beta 5 - again
Message 1 in thread
Try this, for a test. Open designer and place several widgets on a form and
try changing the font to another one than the default font for each widget.
Then try to compile it an see what is happening.
Good luck
At 08:42 PM 09/28/2001, Yves BAILLY wrote:
>Hello all,
>
>Sorry to repost this, but it's getting critical for me...
>
>Using Qt 3.0 beta 5 under Linux Slackware 8.0 (XFree86 4.1.0), I'm unable
>to change my app default font (which is ugly by default). I tried :
>
>QApplication app(arc, argv) ;
>
>QFont f("adobe-helvetica") ;
>QFont f("Helvetica [Adobe]") ;
>QFont f ;
>f.setRawName("-adobe-helvetica-medium-r-normal-*-*-120-*-*-p-*-iso8859-1") ;
>f.setRawName("-Adobe-Helvetica-Medium-R-Normal--12-120-75-75-P-67-ISO8859-1")
>;
>
>..each of them followed by app.setFont(f); : I get only the default, ugly
>font (which looks like -freefont-arnoldboecklin-extrabold-r-normal). Note
> that I found the above font descriptions using gfontsel : so these fonts do
> exist on my system.
>
>I tried with app.setFont(f, true), I tried the setFont() on my main
>widget (derived from QWizard) : *exactly* the same result, i.e. font didn't
>change.
>
>Is it a bug, or am I missing something ? Is it because I don't use the
>font server, but rather static font paths in XF86Config ?
>
>Any help would be welcome.
>I'm ready to spend the needed time to test things, try other configs,
>recompile Qt and so on, help in any way I can.
>
>Regards,
>
>--
>(°< | Yves Bailly : kafka.fr@netcourrier.com | -°)
>//\ | Linux Dijon : http://www.coagul.org | //\
>\_/ | Don d'organe : http://adot21.free.fr | \_/`
>
>--
>List archive and information: http://qt-interest.trolltech.com