Millisecond Forums

Experiment text displays differently on various Windows computers

https://forums.millisecond.com/Topic31521.aspx

By bjohns47@masonlive.gmu.edu - 5/13/2021

I have tested my experiment on desktops and laptops and the text displays differently on both. On the desktop, which was used to create the experiment, text displays fine when using the Inquisit online Experiment. However, when running the same experiment on a laptop, the text does not display properly and runs together, making it difficult to read the questions. It seems the text is a larger font on the laptop and does not fit onto the the lines as it does on the desktop for example, titles for radio buttons run over titles for the next radio button on the same line on the laptops, but not the desktop. Resolutions are different for the computers, but even when I make them nearly the same, the problem still occurs. What should I add to the script that will ensure text displays the same on all computers 

Thanks,

Benjamin
By Dave - 5/14/2021

I have tested my experiment on desktops and laptops and the text displays differently on both. On the desktop, which was used to create the experiment, text displays fine when using the Inquisit online Experiment. However, when running the same experiment on a laptop, the text does not display properly and runs together, making it difficult to read the questions. It seems the text is a larger font on the laptop and does not fit onto the the lines as it does on the desktop for example, titles for radio buttons run over titles for the next radio button on the same line on the laptops, but not the desktop. Resolutions are different for the computers, but even when I make them nearly the same, the problem still occurs. What should I add to the script that will ensure text displays the same on all computers 

Thanks,

Benjamin

To have things scale properly across different display dimensions and resolutions, you should:
- Define any and all positions and sizes, including font sizes, in percentages, and
- Specify a uniform /canvasaspectratio in defaults.

Virtually all scripts available in the library at https://www.millisecond.com/download/library/are set up this way, so you can refer to those as examples.
By bjohns47@masonlive.gmu.edu - 5/14/2021

Dave - 5/14/2021
I have tested my experiment on desktops and laptops and the text displays differently on both. On the desktop, which was used to create the experiment, text displays fine when using the Inquisit online Experiment. However, when running the same experiment on a laptop, the text does not display properly and runs together, making it difficult to read the questions. It seems the text is a larger font on the laptop and does not fit onto the the lines as it does on the desktop for example, titles for radio buttons run over titles for the next radio button on the same line on the laptops, but not the desktop. Resolutions are different for the computers, but even when I make them nearly the same, the problem still occurs. What should I add to the script that will ensure text displays the same on all computers 

Thanks,

Benjamin

To have things scale properly across different display dimensions and resolutions, you should:
- Define any and all positions and sizes, including font sizes, in percentages, and
- Specify a uniform /canvasaspectratio in defaults.

Virtually all scripts available in the library at https://www.millisecond.com/download/library/are set up this way, so you can refer to those as examples.

Thanks. I did not know I could set the font size by percentages. Works great.