[Qt-interest] Picking default fonts
Thiago Macieira
thiago at kde.org
Sun Mar 21 22:49:20 CET 2010
Em Domingo 21. Março 2010, às 21.45.16, Nikos Chantziaras escreveu:
> On Gnome and KDE, there are default "general" and "fixed width" fonts.
> That way, all applications that need to display fixed-width fonts (like
> a text editor) always use the font the user set globally. Is there any
> way I can get those fonts from within a Qt application? I guess the
> default QApplication::font() would be the "general" font. What about
> the default fixed-width font? Right now I simply use "Courier" for
> fixed-width fonts, but that's not a nice behavior.
Use these generic font names:
Sans
Serif
Monospace
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100321/937597ae/attachment.bin
More information about the Qt-interest-old
mailing list