[Qt-interest] Solaris Font Issues Porting Qt3 to Qt4
Jake Colman
colman at ppllc.com
Mon Sep 13 01:10:21 CEST 2010
It looks like the problem is triggered when using fontconfig. If I
build Qt without fontconfig the Helvetica font matches Qt3. When I
build Qt with fontconfig the Helvetica font does not match.
I also noticed that the font combobox list "Helvetica" when using Qt4
with fontconfig but lists "Helvetica [Adobe]" and "Helvetica
[Linotypoe]" when using Qt4 without fontconfig.
How can I use this information to get what I need? Should I simply
build Qt4 without fontconfg? But I should not have to do that!
Thanks.
...Jake
>>>>> "DW" == Dan White <ygor at comcast.net> writes:
DW> Why not try a QFontComboBox to see what your system offers
DW> <http://doc.qt.nokia.com/4.6/qfontcombobox.html>
DW> Make a little test app to let you choose a font and then see its settings.
DW> âSometimes I think the surest sign that intelligent life exists elsewhere
DW> in the universe is that none of it has tried to contact us.â
DW> Bill Waterson (Calvin & Hobbes)
DW> ----- 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
DW> _______________________________________________
DW> Qt-interest mailing list
DW> Qt-interest at trolltech.com
DW> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
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
More information about the Qt-interest-old
mailing list