Hi community!
I have some issues with the visual.TextStim function. I don’t know if it is due to my OS (windows 10) or something that I don’t understand in the function itself. Consider the code below that displays 5 letters (S S H S S) in the Lucida Console font:
win = visual.Window(size=(800,600), monitor= ‘jeanne’, fullscr=False, color=[128,128,128], colorSpace=‘rgb255’, units=‘cm’)
police = ‘Lucida Console’
height_letters = 1
spacing = 0.9target_H = visual.TextStim(win=win, ori=0,
text=u’H’,
font=police,
pos=[0, 0],
color=[0,0,0], colorSpace=u’rgb255’, height = height_letters)flanker_S_left_1 = visual.TextStim(win=win, ori=0,
text=u’S’,
font=police,
pos=[-spacing, 0], height=height_letters,
color=[0,0,0], colorSpace=u’rgb255’)flanker_S_left_2 = visual.TextStim(win=win, ori=0,
text=u’S’,
font=police,
pos=[-2*spacing, 0], height=height_letters,
color=[0,0,0], colorSpace=u’rgb255’)flanker_S_right_1 = visual.TextStim(win=win, ori=0,
text=u’S’,
font=police,
pos=[spacing, 0], height=height_letters,
color=[0,0,0], colorSpace=u’rgb255’)flanker_S_right_2 = visual.TextStim(win=win, ori=0,
text=u’S’,
font=police,
pos=[2*spacing, 0], height=height_letters,
color=[0,0,0], colorSpace=u’rgb255’)flanker_S_left_2.draw()
flanker_S_left_1.draw()
target_H.draw()
flanker_S_right_2.draw()
flanker_S_right_1.draw()win.flip()
But the S is cropped, as showed by my screen capture below. Why is it the case? Increasing the spacing variable doesn’t solve the problem. I get this problem with other fonts as well.
Thanks for your help!