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

expServer key hints have oversized #296

Open
k1o0 opened this issue May 3, 2020 · 1 comment
Open

expServer key hints have oversized #296

k1o0 opened this issue May 3, 2020 · 1 comment

Comments

@k1o0
Copy link
Contributor

k1o0 commented May 3, 2020

I just took a look using a rig. Two things weren't perfect: After displaying the calibration plot, the background went to black rather than grey, and also the help text was kind of hard to read (see below)

The first I think could be solved by just not changing the background color to begin with (lines 420 and 423) -- the plot displays as an image, so it's background will still be white, just not the psychtoolbox background behind it. The second I think just needs a smaller fontsize or larger line spacing.

image

Originally posted by @kevin-j-miller in #245 (comment)

@k1o0
Copy link
Contributor Author

k1o0 commented May 3, 2020

I looked into the text size setting. It seems PTB uses the system default, which should work fine. The clipping your seeing is not affected by the line spacing. In Windows Settings > System, is Scaling set to 100? Try running this code and telling me how it looks:

rig = hw.devices([], false);
win = rig.stimWindow;
win.open();

sz = 20;
def = Screen('TextSize', win.PtbHandle, sz);

msg = sprintf('Default text size: %.0f,\n current size: %.0f', def, sz);
win.drawText(msg, 'centerblock', 'center', win.White, 1, 40)
win.flip()
pause(5)

Screen('TextSize', win.PtbHandle, def);
win.close;

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

No branches or pull requests

1 participant