On 08/01/12 17:55, Carl Schumann wrote:
> So I tried QFont::setFixedPitch(true).

The following works for me:

// Ask for a fixed-width font. The problem is that these names wary 
across platforms,
// but the following works well -- at first, we come up with a made-up 
name, and then
// let the Qt font substitution algorithm do its magic.
QFont font(QString::fromAscii("x-trojita-terminus-like-fixed-width"));
font.setStyleHint(QFont::TypeWriter);

With kind regards,
Jan

-- 
Trojita, a fast e-mail client -- http://trojita.flaska.net/

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to