blob: 218b599fa6e5a449d76f7cfdae8f67cb7d5ddabf (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
function Fontsize(Ookisa)
global Wfile FID;
Str='%';
Ucode=ascii(Ookisa);
S=char(Ucode(1));
if S=='n'
Str='\normalsize%';
end
if S=='s'
if length(Ucode)==1
Tmp='';
else
Tmp=char(Ucode(2));
end
if Tmp=='s'
Str='\scriptsize%';
else
Str='\small%';
end
end
if S=='f'
Str='\footnotesize%';
end
if S=='t'
Str='\tiny%';
end
if S=='l'
Str='\large%';
end
if S=='L'
if length(Ucode)==1
Tmp='a';
else
Tmp=char(Ucode(2));
end
if Tmp=='a'
Str='\Large%';
else
Str='\LARGE%';
end
end
if S=='h'
Str='\huge%';
end
if S=='H'
Str='\Huge%';
end
if Wfile=='default'
mprintf('%s\n',Str);
else
mfprintf(FID,'%s\n',Str);
end
endfunction
|