-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtextTest.m
More file actions
35 lines (25 loc) · 884 Bytes
/
Copy pathtextTest.m
File metadata and controls
35 lines (25 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
clear Screen;
clear all
close all
clc
Screen('Preference', 'VisualDebugLevel', 6);
Screen('Preference', 'SuppressAllWarnings', 0);
Screen('Preference', 'Verbosity', 4);
window=Screen('OpenWindow',0);
%Screen('Preference', 'TextRenderer', 0); % consider moving to station.startPTB
Screen('Preference', 'TextAntiAliasing', 0); % consider moving to station.startPTB
Screen('Preference', 'TextAlphaBlending', 0);
oldStyle=Screen('TextStyle', window, 0)
%Screen('TextSize',window,11);
font = 'nimbus mono l';
font = 'palladio';
font = 'fixed';
%Screen('TextFont',window,font);
%[normBoundsRect, offsetBoundsRect]= Screen('TextBounds', window, 'TEST');
Screen('DrawText',window,'hello',100,100);
oldCopyMode=Screen('TextMode', window)
oldStyleFlag = Screen('Preference', 'DefaultFontStyle')
oldfontName = Screen('Preference', 'DefaultFontName')
Screen('Flip',window);
KbWait;
sca