[Development] QFont::setFamily("monospace") on OS X

Liang Qi cavendish.qi at gmail.com
Thu Jan 21 20:31:52 CET 2016

Perhaps QPlatformTheme::font() is related.



On 21 January 2016 at 18:29, René J.V. <rjvbertin at gmail.com> wrote:

> Hello,
> Not sure if this is the best place to ask:
> I think QFont::setFamily("monospace") should allow to obtain an
> appropriate monospace font on all platforms. It does with the XCB QPA ,
> giving me the Consolas font (ideally it should return the fixed-width font
> that goes with the active (platform) style, though).
> On OS X with the cocoa QPA however, this gives Lucida Grande, i.e. the
> system fallback font.
> I suppose that's a bug, or is there a reason why this doesn't work as
> expected?
> Cf: https://bugreports.qt.io/browse/QTBUG-50564
> R.
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160121/fac51b69/attachment.html>

More information about the Development mailing list