[Development] System-wide font preferences for monospace font

Thiago Macieira thiago.macieira at intel.com
Thu May 9 16:45:23 CEST 2013


On quinta-feira, 9 de maio de 2013 14.09.36, Jan Kundrát wrote:
> Hi,
> it looks like Qt tries to respect the font settings of the underlying
> platform in many situations, but there's unfortunately no way (AFAIK) to
> get the user's preference for a monospace font. My use case is to fit well
> into the user's desktop when showing and writing plaintext e-mails.

The user's monospace font is called "Monospace". That is not a font name, it's 
an alias set by fontconfig, on systems that use fontconfig.

> I've dug through the Qt's sources and it appears that Qt4 contains some code
> for parsing the KDE's options (src/gui/kernel/qapplication_x11.cpp). It
> will read the "font" settings, but not the "fixed" settings. Furthermore,
> it looks like there's no support for various types of default fonts.

Those KDE settings pre-date fontconfig. I'd argue that KDE should configure 
fontconfig instead and change the alias there.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130509/c9a8433d/attachment.sig>


More information about the Development mailing list