Description of the problem: I need a paragraph of text to appear at the same place in order to correspond to polygons i placed on top of some letters. In my offline psychopy experiment I used height units to place the text using Courrier new, and also used height units to place the polygons on top of letters ‘e’.
When I try it out online however, the polygons seem to be at correct places (vis a vis the monitor) but the text is completely different, making the letters not correspond to the polygons, see picture. What am I doing wrong?
Is it a text component or a textbox?
Locally
Online
Both seem more compressed online. However, with a textbox I can adjust the line spacing. It doesn’t work online but with a line spacing of 0.875 my offline textbox is pretty close to the online one
This is with a letter height of .05 height units.
Here are the results at .03 with the same 0.875 line spacing
Locally
Online
It looks like slightly less would be best. However, I’ve only tried Chrome.
You could try multiplying all of your rectangle Y coordinates by a correction factor.
In my letter detection demo I wrote for you I’d already noticed this discrepancy.
So by those figures you should divide the y-coordinates of your rectangles by 1.18 and the x corodinates by 1.01
However, I note that you seemed to present text more compressed online. Please could you confirm that your images were that way around, or is it that locally the text doesn’t quite fit on the screen?
Dear wakecarter, thanks for your reply,
The compressed version, the one that fully fits on the screen is the offline version i based my polygons on, and it somehow blows up and down in online version. I’ve kind of solved the issue(?) although i still don’t know how come it was a problem.
Basically, the text itself was taken from an excel file, that way I could show as many versions of the text as I need, what I did is I pasted the text into the text stimulus itself, and now it kinda works? But now i need to make another routine to showcase the other text.
Oh yes – I have come across that issue.
Text from an Excel file gives double line spacing online in a text component but is fine in a textbox.