Harvard |  FAS |  GSAS |  Division of Science |  HUIT 

Mathematica GUI Fonts

 

The Mathematica GUI requires its own set on fonts to run correctly when used on Odyssey. To be able to run an Interactive, GUI session/job, there are a few steps that will need to be taken. This goes for sessions over SSH, as well as NX sessions.

OSX/Linux Systems:

OSX and Linux systems are the simplest to setup, as they already run an X server, which is what needs the specific Mathematica fonts.

  1. Create a directory to hold the fonts:
    $localhost> mkdir ~/mathfonts
    $localhost> cd ~/mathfonts
  2. Download the fonts archive:
  3. $localhost> wget http://rcc.its.psu.edu/hpc/software/mathematica/mathematica-fonts.tgz
  4. Extract the fonts:
  5. $localhost> tar -xzvf mathematica-fonts.tgz
    $localhost> rm mathematica-fonts.tgz



The fonts are now installed, but you must tell the X server to use them. This will need to be before you connect to Odyssey, each time you wish to connect to run Mathematica. For this reason, you may want to add it to your local .bashrc/.tcshrc. The fonts must be added to the X server in a particular order:
$localhost> xset fp+ /full/path/to/fonts/Type1
$localhost> xset fp+ /full/path/to/fonts/BDF
$localhost> xset fp rehash


You may now login to Odyssey as normal, load the Mathematica module, and work as normal.

Windows Instructions
Windows Instructions are very similar, only you will be operating inside your Cigwin/Xming environment. Cigwin/Xming needs to be installed, with an Xserver, and that XServer should be running. For more information, please see: http://x.cygwin.com/docs/ug/cygwin-x-ug.html

With Cigwin/Xming running, perform the following:

  1. Create a directory to hold the fonts:
    $localhost> mkdir ~/mathfonts
    $localhost> cd ~/mathfonts
  2. Download the fonts archive:
  3. $localhost> wget http://rcc.its.psu.edu/hpc/software/mathematica/mathematica-fonts.tgz
  4. Extract the fonts:
  5. $localhost> tar -xzvf mathematica-fonts.tgz
    $localhost> rm mathematica-fonts.tgz


The fonts are now installed, but you must tell the X server to use them. This will need to be before you connect to Odyssey, each time you wish to connect to run Mathematica. For this reason, you may want to add it to your local .bashrc/.tcshrc.
(Please note, the fonts must be in a path without spaces/special characters, otherwise the XServer will fail to find them. Many times Cigwin will have spaces in your users home directory. If this is the case, you may want to move the fonts outside that directory,such as /mathfonts).

The fonts must be added to the X server in a particular order:
$localhost> xset fp+ /full/path/to/fonts/Type1
$localhost> xset fp+ /full/path/to/fonts/BDF
$localhost> xset fp rehash


You may now login to Odyssey as normal, load the Mathematica module, and work as normal.

We are grateful for assistance from the Pennsylvania State University HPC group in helping resolve this problem.

We also have a local cache of the files from PSU below attached to this note.

Site last updated June 7, 2013