Adding Mathematica fonts to Hummingbird Exceed
Written by Eran Tromer with help fom
Ariel Elbaz. Last
update:
2004-04-01.
Using Mathematica via the Exceed X server requires installation of
fonts on the PC running Exceed. In the spirit of Windows, it's
impossible to write a simple script that achieves this and the only
(documented) procedure involves manually navigating numerous obscure
dialog boxes. The following instructions describe the full installation
procedure.
The instructions apply to Mathematica 4 and Matehematica 5, and
Exceed 7.0 (for Exceed 8.0, try Hummingbird's
instructions or the alternative below). The paths used reflect the
standard installation of
Exceed 7.0 at the Faculty
of
Mathematics and Computer Science at the
Weizmann Institute of Science, so obvious changes may be needed for
other
installations.
- First check whether the fonts are already installed, by running
Mathematica (at Weizmann, run "Mathematica" on the host math01-lx).
It will issue a warning if the fonts are missing. Quit Mathematica.
- Download one of the following and extract it to C:\TEMP\MATH
(e.g., using WinZip):
- Create the directory "C:\Program
Files\Hummingbird\Connectivity\7.00\exceed\font\Mathematica\"
- Run Exceed's Xconfig from "Start |
Programs | Hummingbird Connectivity 7.00 | Exceed | Xconfig" or "Start | Programs | Exceed | Xconfig"
- Double-click on Font.
- Choose Compile Fonts...
- In "Directories", choose
C:\TEMP\MATH\PCF
- In "List Files of Type",
choose "PCF Files" or BDF Files", depending on the version you
downloaded at step 2.
- Click "Select All"
- In "Output Font Directory",
choose C:\Program
Files\Hummingbird\Connectivity\7.00\exceed\font\Mathematica\
- Click Compile
- Click Done
- When asked whether to add the directory to the font database,
choose Yes
- In the "File Name (*.fdb)"
edit box, enter "Mathematica".
- Change the Status radio
box
from Load to Keep.
- Click OK to close the "Add Font
Directory " dialog box
- Click Close to close the "Compile Fonts" dialog box
- Choose "Font Database"
- Disable "Automatic Font
Substitution " (if it is enabled)
- Click OK
- Click Close to close the "Font Settigns" dialog box
- Close Xconfig
- Delete C:\TEMP\MATH
- Make sure Mathematica is not running.
- If Exceed is running, right-click on the Exceed icon in
the taskbar and from the pop-up menu choose File | Reload
Database | Font.
Alternative solution: forget Exceed, use free software
Cygwin/X is a Windows
version of the famous XFree86 X server, which is the standard for Linux
systems. As such, it supports various extensions (e.g., "XRENDER")
that improve the functionality of many modern programs written
primarily for Linux. Installation of fonts is easily scriptable (in
contrast
with the monstrosity above!). And best of all, Cygwin/X is open source
software.
One-time installation procedure (does not affect your existing
Exceed installation):
- Install Cygwin by
downloading and running its setup program.
Make sure to choose the X11, Archive and Net
categories,
and the wget
package in the Web
category.
- Download the batch file cygx.bat
onto your
desktop (or some other convenient place). This batch file starts
Cygwin/X and opens an xterm window running a bash
shell on your local machine. If you installed Cygwin to a non-default
location, change the "set CYGWIN_ROOT=..." line in cygx.bat
accordingly.
- To install the Mathematica fonts, run cygx.bat and
paste the following command (as one long line) into the shell window:
export
http_proxy=http://wwwproxy.weizmann.ac.il:8080; (set
-xe; cd /usr/X11R6/lib/X11/fonts/misc/; for TYPE in PCF BDF; do wget -O
/tmp/$TYPE.zip
http://support.wolfram.com/mathematica/systems/unix/interface/$TYPE.zip;
unzip -j -n
/tmp/$TYPE.zip; rm /tmp/$TYPE.zip; done; mkfontdir.exe; xset fp rehash;
echo Success) |
(Alter or remove the "http_proxy=..."
at the beginning to reflect your proxy configuration.)
- Make sure the above said Success.
That's it. To run Mathemaica:
- Run cygx.bat.
- Use ssh
or telnet to log into
your Unix
server and run Mathematica as usual.
Please inform me of any errors
in the above and of relevant updates.