[solved] 'font_style' issue
Hello everybody,
First of all, thanks to the developers for their great work.
I just started to use opensesame, matlab beeing too heavy for small computers such as my laptop.
Since the last update (3.0), I have an issue when I try to use sketchpad or form_text_display. Here is the message:
File "dist\libqtopensesame\misc\process.py", line 140, in run
File "dist\libopensesame\experiment.py", line 390, in run
File "dist\libopensesame\item_store.py", line 95, in execute
File "dist\libopensesame\item_store.py", line 110, in run
File "dist\libopensesame\sequence.py", line 49, in run
File "dist\libopensesame\item_store.py", line 110, in run
File "dist\libopensesame\loop.py", line 143, in run
File "dist\libopensesame\item_store.py", line 95, in execute
File "dist\libopensesame\item_store.py", line 110, in run
File "dist\libopensesame\sequence.py", line 49, in run
File "dist\libopensesame\item_store.py", line 110, in run
File "dist\libopensesame\loop.py", line 143, in run
File "dist\libopensesame\item_store.py", line 94, in execute
File "dist\libopensesame\item_store.py", line 126, in prepare
File "dist\libopensesame\sequence.py", line 106, in prepare
File "dist\libopensesame\item_store.py", line 126, in prepare
File "dist\libopensesame\sketchpad.py", line 102, in prepare
File "dist\libopensesame\sketchpad_elements\_textline.py", line 72, in draw
File "dist\openexp\backend.py", line 181, in inner
File "dist\openexp\_canvas\canvas.py", line 768, in text
File "dist\libopensesame\html.py", line 260, in render
File "dist\openexp\_canvas\xpyriment.py", line 203, in _text
AttributeError: 'xpyriment' object has no attribute 'font_style'
I don't have this issue when using (for example) a fixation dot.
Maybe some files are missing in my opensesame version? I did not find any solution to my problem in the discussions.
Thank you for your help.
Stakhanov
Comments
Hi,
Thanks for reporting this. Am I correct in assuming that you have selected a custom font ('other ...')? There is indeed a bug here--easily fixed for 3.0.1. For now, you can use one of the following work-arounds:
Hope this helps!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Changing the font from 'Times New Roman' to 'sans' did not resolved the problem. However, using the psycho back-end did! :-) Thank you very much for your help!
Stakhanov