Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blurry text rendering in Coder view on high resolution displays #1118

Closed
papr opened this issue Feb 17, 2016 · 6 comments
Closed

Blurry text rendering in Coder view on high resolution displays #1118

papr opened this issue Feb 17, 2016 · 6 comments

Comments

@papr
Copy link
Contributor

papr commented Feb 17, 2016

I am using a Macbook Pro with a Retina display. The Coder view does not render the source code sharply. This follows most likely from not checking if the view draws onto a HDPI display. I attached a screenshot and a selection of it as prove/example.

Thanks for your hard work! It is appreciated. <3

screenshot 2016-02-17 16 17 29

screenshot 2016-02-17 16 17 29-clip

@jeremygray
Copy link
Contributor

Yeah, I too have a retina display and know exactly what you mean. If you can figure out how to systematically check whether the display is retina type, and then how to tell wx (v3.0+) to render text using that high-res option, I'll have a go at tweaking the PsychoPy code.

@papr
Copy link
Contributor Author

papr commented Feb 17, 2016

It sounds like you are using a default wx text view? If so the text view should be responsible for drawing sharp text. Therefore this issue would not belong here but on the wx bug report page...

@m-macaskill
Copy link
Contributor

Rendering of interface elements in Builder and Coder on retina displays has improved progressively over recent releases, but text rendering does remain strikingly low-quality, which will be turning off potential new users.
For me, the issue also affects rendering of stimuli within the experiment window itself, which is even more serious.

@jeremygray
Copy link
Contributor

I use the Coder window for quick small things, and use PyCharm for longer code.

For the visual display in the window, this patch for pyglet looks promising: https://bitbucket.org/pyglet/pyglet/commits/c6c387c. I see a crisper display, but the scale is off and things are not centered. So will need more work.

@peircej
Copy link
Member

peircej commented Feb 18, 2016

I do think this is a wxPython issue more than ours probably. It should detect the retina display and adjust accordingly. My sense was that some aspects of it are doing so already. The pyglet code Jeremy points to looks interesting from our stimulus-rendering point of view though!

m-macaskill referenced this issue Aug 1, 2016
code view is now high-res (turned off buffered drawing)
added some higher-res icons for toolbar (compare coder with builder to see
the difference)
high-res icons in builder not yet having any effect (need to change the
rednering of bitmap button?)
@m-macaskill
Copy link
Contributor

Resolved by 07e6472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants