[Interest] QFontDialog & macOS 10.14: Font family is always ".SF NS Text"

Bob Hood bhood2 at comcast.net
Tue Jan 29 16:44:25 CET 2019


Reported as a bug.

On 1/26/2019 11:01 AM, Bob Hood wrote:
> I'm using QFontDialog on macOS 10.14 with Qt 5.11.1.  No matter what font 
> family or point size I select, the QFont family() and toString() methods are 
> returning only ".SF NS Text" for the family, and pointSize() only returns 
> 13.  Under Windows, same code returns the correct family/point size.
>
> I checked macOS 10.14 sing FontBook, and all the fonts listed are actually 
> installed.
>
> Bug in 5.11.1?  Or am I doing something wrong?  The code is really simple:
>
>     ...
>     bool ok = false;
>     QFont font = QFontDialog::getFont(&ok, this);
>     ...
>
> The "ok" parameter is always true after the call.
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190129/851650ba/attachment.html>


More information about the Interest mailing list