Mathematica Fonts Setup
Overview
Mathematica requires its own fonts in order to display content correctly. If you are running Mathematica remotely, using an X-server, you will need to install these fonts on your local machine and tell Mathematica where to find them.
Setup
Introduction
Mathematica fonts must be copied to your local X-Windows system (Cygwin, Xming, or Exceed on Windows, or a local X11 installation on *nix).
If you are running Windows with Xming, please proceed to Section I. If you do not have Xming installed, reference our Xming
installation how-to.
If you are running Windows with Cygwin, please proceed to Section II. If you do not have Cygwin installed, reference our Cygwin
installation how-to.
If you are running *nix with X11, and have root access, please proceed to Section III.
If you are running *nix with X11, and do not have root access, please proceed to Section IV.
Section I - Installing Mathematica Fonts in Xming
- First you will need to download the following mathematica fonts zip:
[.zip (5MB)].
- Create the directory "C:\Program Files\Xming\fonts\Mathematica"
- Untar the Archive to the directory you just created. You should now
have the following two directories:
"C:\Program Files\Xming\fonts\Mathematica\Type1" and
"C:\Program Files\Xming\fonts\Mathematica\BDF".
- Start Xming if it is not already running.
- Log in to Hammer using your favorite SSH client, then run Mathematica using the following command:
Section II - Installing Mathematica Fonts in Cygwin
- First you will need to download the following mathematica fonts archive:
[.tgz (4.6MB)].
- Untar the Archive to some directory. Start X windows (using the shortcut
created in the last step of the
Cygwin how-to), and issue the following commands
using the xterm terminal window that opens:
mkdir -p /usr/lib/X11/fonts/Mathematica
mv mathematica-fonts.tgz /usr/lib/X11/fonts/Mathematica
cd /usr/lib/X11/fonts/Mathematica
tar -xzvf mathematica-fonts.tgz
rm -f mathematica-fonts.tgz
|
- Rebuild the fonts.dir files.
Using the same terminal as in the previous step, issue the following
commands:
mkfontdir /usr/lib/X11/fonts/Mathematica/BDF
mkfontdir /usr/lib/X11/fonts/Mathematica/Type1
|
- Log in to Hammer and run Mathematica, telling Mathematica where to find
the fonts:
ssh -Y <username>@hammer.aset.psu.edu
mCygwin.sh
|
Section III - Installing Mathematica Fonts in Linux (with root access)
- First you will need to download the following mathematica fonts archive:
[.tgz (4.6MB)].
- Untar the Archive to some directory. Make sure X windows is running,
and issue the following commands using your favorite terminal program,
making sure you are logged in as an administrator:
mkdir -p /usr/local/mathematica/fonts
mv mathematica-fonts.tgz /usr/local/mathematica/fonts
cd /usr/local/mathematica/fonts
tar -xzvf mathematica-fonts.tgz
rm -f mathematica-fonts.tgz
|
- Rebuild the fonts.dir files.
Using the same terminal as in the previous step, issue the following
commands:
mkfontdir /usr/local/mathematica/fonts/BDF
mkfontdir /usr/local/mathematica/fonts/Type1
|
- Log in to Hammer and run Mathematica, telling Mathematica where to find
the fonts:
ssh -Y <username>@hammer.aset.psu.edu
mLinux.sh
|
Section IV - Installing Mathematica Fonts in Linux (as user - no root access)
- First you will need to download the following mathematica fonts archive:
[.tgz (4.6MB)].
- Untar the Archive to some directory. Make sure X windows is running,
and issue the following commands using your favorite terminal program:
mkdir ~/mathfonts
mv mathematica-fonts.tgz ~/mathfonts
cd ~/mathfonts
tar -xzvf mathematica-fonts.tgz
rm -f mathematica-fonts.tgz
|
- Rebuild the fonts.dir files.
Using the same terminal as in the previous step, issue the following
commands:
mkfontdir ~/mathfonts/BDF
mkfontdir ~/mathfonts/Type1
|
- Log in to Hammer:
ssh -Y <username>@hammer.aset.psu.edu
|
- Generate a file to launch Mathematica and tell it where to find your
fonts. Using your favorite text editor, create a new file (in this
example, named mLinuxUser.sh) resembling the following with
<home_dir> replaced with the full path to your home directory on
your local (client) machine:
#!/bin/sh
xset fp+ /<home_dir>/mathfonts/Type1
xset fp+ /<home_dir>/mathfonts/BDF
mathematica $@
|
- Run Mathematica, telling it where your fonts are installed:
Documentation
Wolfram's documentation for making Mathematica fonts available for remote
execution can be found
here.
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|