I develop a cross-platform program, and this is something that has bugged the users for a while. I should note that I basically inherited the program and did not develop the majority of the GUI. First, an image:
https://cloud.githubusercontent.com/assets/3753521/10973174/10639de8-8391-11e5-9ba6-fb1bd4c66fd6.png
The window shown at the top was a build with wxPython 3.0, which apparently has much better Retina support for text, while the overlayed window is a build with wxPython 2.8. You can see that the text is crisp in the new version (as long as we are dealing with strictly text), but you can see that images are still blurred.
Also, please be aware that I don’t actually have a Retina display and don’t know how to emulate one. I’m kind of trying to patch this in the dark and hope thigns work, so that why I’m here trying to get a bit of direction
-
Is there a way to fix the blurred images? This program uses a lot of 16x16 and 24x24 png files that are sourced from 32x32 or 64x64 png files - these are loaded as images, converted to bitmaps, and then displayed. We have no control over the source of these images. Would it be sufficient to just ship with the high-quality versions and use wx.Image.Scale()? Would that fix the DPI issue?
-
The text that is still blurry (in the left-hand list, the tabs, in the gauges to the right, etc) is because this is text that is drawn onto custom widgets, which are basically bitmaps that are constructed using a MemoryDC. The initial bitmap is defined with a certain resolution, and I am not sure how to define the DPI / how to fix this (perhaps defining a large resolution and scaling down?)
Any help would be appreciated