[Qt-interest] Solaris Font Issues Porting Qt3 to Qt4
Dan White
ygor at comcast.net
Wed Sep 8 20:31:57 CEST 2010
Why not try a QFontComboBox to see what your system offers
<http://doc.qt.nokia.com/4.6/qfontcombobox.html>
Make a little test app to let you choose a font and then see its settings.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- Jake Colman <colman at ppllc.com> wrote:
>
> Our application is a mixed Motif/Qt application using the Qt Motif
> Extension. When using Qt3, the fonts on my Qt screens were an exact
> match for the fonts on my Motif screens. Since upgrading to Qt4, the Qt
> fonts are quite ugly and certainly do not match.
>
> I use an app-defaults file to specify my Motif fonts. In Qt I do the
> following:
>
> QFont Font;
> Font.setFamily("Helvetica [Adobe]");
> Font.setPixelSize(12);
> QApplication::setFont(Font);
>
> What do I need to do differently in Qt4 so that I get the above code
> chooses the same font that it did in Qt3?
>
> Thanks.
>
> ...Jake
>
>
>
> --
> Jake Colman | Director, Software Development
> Principia Partners LLC
> 101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
> t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
> e: colman at ppllc.com | w: www.principiapartners.com
> Credit technology innovation awards winner 2008 and 2009
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list