Jump to content

SPM/fonts

From Wikibooks, open books for an open world
< SPM

SPM-FONT-FIXES

[edit | edit source]

Some users may experience problems with fonts being too small. This entry is a compilation of suggested fixes.

Note: Some of these these fixes may work on some platforms and not others. You may have to combine several fixes.


Fix #1[1]

This fix has worked on some Windows machines, but does not resolve all problems.

  1. Open spm.m
    • This file is generally located under ~/spm8/spm.m on *NIX systems, and under C:\spm\spm8\spm.m on Windows
  2. On or around line 631 replace:
   if nargin<2, FS=1:36; else FS=varargin{2}; end

with:

   if nargin<2, FS=2:36; else FS=varargin{2}; end


Fix #2[2]

  1. Open spm.m
    • This file is generally located under ~/spm8/spm.m on *NIX systems, and under C:\spm\spm8\spm.m on Windows
  2. On or around line 636 replace:
   sf  = offset + 0.85*(min(spm('WinScale'))-1);

with:

   sf  = offset - 0.85*(min(spm('WinScale'))-1);

Combining Fix #1 and Fix #2 may resolve the problem in some situations.[3]


Mac specific fix

If you are using a Mac open up the spm.m file as indicated above, scroll to line 664 and replace

   offset     = 1;

with:

   offset     = 1.4;

and this will solve all your font issues.

Other suggestions for font and display issues have included turning on the Graphics window resize property and viewing the output after printing to a ps file.[4]

References

[edit | edit source]
  1. Darren Gitelman (26/10/2004), {{citation}}: Check date values in: |date= (help); Missing or empty |title= (help)
  2. Joel Winston, {{citation}}: Missing or empty |title= (help)
  3. Marco Tettamanti (28/10/2004), {{citation}}: Check date values in: |date= (help); Missing or empty |title= (help)
  4. Darren Gitleman, {{citation}}: Missing or empty |title= (help)

Return to SPM