问题描述
我的计算机上有一个未解决的问题,我的代码在其他问题上可以正常工作。运行没有 DrawFormattedText
的代码是可以的(我在代码的其他部分显示了一些图片)。
Screen('Preference','SkipSyncTests',0); %I tryed this part with 0 or 1 but none of them work.
ScreenNumber=max(Screen('Screens'));
[w,wrect] = Screen('OpenWindow',ScreenNumber(end),[0 0 0]);%2400 x 1040
cycleRefresh=Screen('GetFlipInterval',w);
vbl=Screen(w,'Flip');
[width,height]=Screen('WindowSize',w);
Screen('TextSize',w,25); % SET TEXT SIZE HERE
Screen('TextFont','Times');
Screen('TextStyle',1);
Textcolor=[255 255 255];
DrawFormattedText(w,'Start experiment','center',Textcolor);
这里是消息错误:
赢 = 10
外部文本渲染器插件无法渲染文本字符串 某些原因! % 很有帮助^^
使用屏幕使用时出错:
[normBoundsRect,offsetBoundsRect,textHeight,xAdvance] = Screen('TextBounds',windowPtr,text [,x] [,y][,yPositionIsBaseline] [,swapTextDirection]);
DrawFormattedText 中的错误(第 295 行) theight = RectHeight(Screen('TextBounds',win,tstring));
SCRIPT_PROSOC_CommentSerialObj 中的错误(第 102 行) DrawFormattedText(w,'开始实验',Textcolor);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)