Dear Giuseppe,
At 17:44 13/07/99 +0200, Giuseppe Pagnoni wrote:
| I have just installed SPM99b (and all the fixes) on a PentiumIII 450
| MHz running Win NT and Matlab 5.2. Everything seemed fine except for
| the font sizes which are bigger than the buttons, and also in the
| graphics window the text (for instance, the help documentation) is
| quit cropped on the right side. I already checked to have all the
| fonts indicated on the font mapping for a PC in spm_platform.m (Arial
| Narrow, Times New Roman, Courier New, Symbol). Moreover, I edited the
| spm.m file and saw that WinScale is computed correctly for my monitor
| resolution (800x600). I also tried to input a 'custom' value for the
| font scale factor fs, in place of the computed value of 0.7556. To
| make the text pages fit in the graphics window I have to reduce fs to
| 0.5, but then the fonts gets so small that it's difficult to read!
|
| Any suggestion on this little 'easy' bugling?
To be brutally honest, the best fix is to get a higher resolution display!
SPM99 was written on Suns with 17-21 inch monitors. The display scaling is
good for resolutions around that of the Sun 17 inch monitor (1152x900), but
with very low resolutions the design of SPM's GUI (three non-overlapping
windows) is not appropriate - you just can't fit the stuff in legibly!
I've tried very hard to make the scaling work for a large range of
machines, from 21 inch Suns to my NT laptop, and have improved the
FontScaling so that the help text isn't too large on smaller screens (noted
by Marc Mentis on spm-bugs), but there is a limit to what can be achieved
without recoding large parts of the interface!
You can pick up a version of spm.m with the improved (simplified)
FontScaling from:
ftp://ftp.fil.ion.ucl.ac.uk/spm/spm99b_updates/spm.m
...but this won't solve your problem with an 800x600 screen :-)
----------------
For an 800x600 screen, I recommend tinkering with the FontScaling in spm.m
(as you have done) to get the font size for the UIcontrols OK, and then
tweak the FontSize for the text pages in the Graphic window separately in
spm_help.m at line 854:
h = text(0,y,d(2:length(d)),... 'FontName',PF.courier,'FontSize',FS(10));
...just change the 10. You should also make a corresponding change to the
line spacing variable defined a bit earlier at line 838:
dy = FS(10)*1.2; y0 = floor(AxPos(4)) -dy; y = y0;
...again, change the 10.
----------------
Hope this helps (someone),
-andrew
+- Dr Andrew Holmes ------------------ mailto:[log in to unmask] -+
| ___ __ ___ Robertson Centre for Biostatistics |
| ( ,) / _)( ,) Boyd Orr Building, |
| ) \( (_ ) ,\ University Avenue, |
| (_)\_)\__)(___/ Glasgow. G12 8QQ Scotland, UK. |
+----------------------------------------- http://www.rcb.gla.ac.uk/ -+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|