Hello!
My team and I are working on a stand alone desktop application for which we use wxwidgets. On Windows and on Linux the texts in all controls look good, they are clear and sharp as expected. On Mac, specifically Catalina but I think it happened even with Mojave, the texts in all the controls except the menu items look blurry. We are using wxWidgets 3.1.3 version and the computers that I am seeing this issue on have retina displays.
Any advice would be greatly appreciated. If you could point me in a direction where I might find the solution.
Thank you!
Blurry text on Mac
Re: Blurry text on Mac
Hi,
Are you able to reproduce it in the {minimal, widgets} sample?
Thank you.
Are you able to reproduce it in the {minimal, widgets} sample?
Thank you.
Re: Blurry text on Mac
Hello,
Thank you for you quick reply.
We have some minimal demo apps that use wxWidgets and I could not reproduce it there. That's good to know, it means the setting/error is somewhere in our code base.
Thank you for you help.
Thank you for you quick reply.
We have some minimal demo apps that use wxWidgets and I could not reproduce it there. That's good to know, it means the setting/error is somewhere in our code base.
Thank you for you help.
Re: Blurry text on Mac
It would be very helpful to know at least what might be the cause of these blurry controls under macOS: is it the way wxWidgets configured, or is it specific to certain controls, or does it matter that the size of the control is specified for Mac instead of letting the sizer lay it out? Actually, I do that quite often and I'm not sure whether that is a good practice. The menu items look good but all the other controls are blurry.
Re: Blurry text on Mac
Try adding:
<key>NSPrincipalClass</key>
<string>NSApplication</string>
into Info.plist. That's supposed to enable retina support. wxWidgets samples do it too, see Info.plist.in.
<key>NSPrincipalClass</key>
<string>NSApplication</string>
into Info.plist. That's supposed to enable retina support. wxWidgets samples do it too, see Info.plist.in.
Re: Blurry text on Mac
Worked like magic! Thank you so much!