psychopy.org | Reference | Downloads | Github

visual.TextStim are not visible when using height other than 0.1 on laptop running Windows 7


#1

I have an experiment that I wrote in the coder view (version 1.85.2) on a mac (OS 10.12.5). It runs just fine with no problems.

When I try to run the same experiment on a PC laptop (Windows 7) with the same version of Psychopy (1.85.2) the visual.TextStim are not visible unless the height=0.1.

For example when the experiment gets to a routine called waiting_text, I can see the appropriate text that is defined later in the code:

#Initialise components for Routine "waiting"
waitingClock=core.Clock()
wait_text=visual.TextStim(win=win, ori=0, name='wait_text',
text='Nonsense',
font='Arial',
pos=[0, 0], height=0.1,wrapWidth=None,
color='black', colorSpace='rgb', opacity=1,
depth=0.0)

However, the next routine init_fix is not visible. Just a white screen is presented.

#Initialise components for Routine "init_fix"
init_fixClock=core.Clock()
init_fix=visual.TextStim(win=win, ori=0, name='init_fix',
text='+',
font=u'Arial',
pos=[0, 0], height=0.3,wrapWidth=None,
color=u'black', colorSpace='rgb', opacity=1,
depth=0.0)

When I change the height from height=0.3 to height=0.1 or None, I can then see the appropriate text (albeit smaller than I would like).

#Initialise components for Routine "init_fix"
init_fixClock=core.Clock()
init_fix=visual.TextStim(win=win, ori=0, name='init_fix',
text='+',
font=u'Arial',
pos=[0, 0], height=0.1,wrapWidth=None,
color=u'black', colorSpace='rgb', opacity=1,
depth=0.0)

Any insight on how I could potentially get my text to be a little larger and visible on a Windows machine would be appreciated.


#2

This is a duplicate of Limit on TextStim height in v1.85.2
The answer is that it’s a bug and we haven’t had time to look into what causes it yet. Happy to receive fixes :slight_smile:


#3