Seg3D icon indicating copy to clipboard operation
Seg3D copied to clipboard

GUI fonts are not anti-aliased on Mac

Open dcwhite opened this issue 4 years ago • 8 comments

Investigate this after #348, it might come for free with Qt version. I don't remember how exactly to enable it in from SCIRun.

dcwhite avatar Jun 22 '20 19:06 dcwhite

You just need to add this to Info.plist:

<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<string>True</string>

https://doc.qt.io/qt-5/highdpi.html

akenmorris avatar Jun 22 '20 20:06 akenmorris

Cool thanks. Yeah after that is says "Newer versions of qmake will generate an Info.plist file with the NSPrincipalClass key; this is sufficient since NSHighResolutionCapable is true by default." That's probably what happened with SCIRun, but it doesn't say exactly which version of qmake enabled that. CMake might handle it too, I found this: https://gitlab.kitware.com/cmake/cmake/commit/d9140305077c13defa04774b4a8f5233a76f8399

dcwhite avatar Jun 22 '20 20:06 dcwhite

See also #132

akenmorris avatar Jun 22 '20 20:06 akenmorris

Also:

https://github.com/SCIInstitute/Seg3D/commit/8e734b0d224d177a51811ad36a884b0659e0d8f2

Seems like it was added at some point and then explicitly removed.

akenmorris avatar Jun 22 '20 20:06 akenmorris

Ha. Well that will be an easy fix for @allywarner then!

dcwhite avatar Jun 22 '20 20:06 dcwhite

Ok, I see the problem. When you turn this on, the viewers only show in the lower left 1/4th of the viewer.

akenmorris avatar Jun 22 '20 20:06 akenmorris

@dcwhite @akenmorris the 1/4th view problem has been fixed elsewhere. I've changed this back to true and it looks pretty good so far.

allywarner avatar Jun 22 '20 22:06 allywarner

1/4 viewer problem is back. Built on OSX 10.13 with Qt 5.12.9.

allywarner avatar Aug 07 '20 02:08 allywarner