Friday, October 05, 2007

Installing X11 fonts for Mathematica under Mac OS X.

This note doesn't cover instructions to install X11 server under Mac OS X.
  1. Download this font packages.
  2. mkdir ~/localxfonts
  3. tar zxvf ~/Desktop/mathematica-fonts.tgz -C ~/localxfonts
  4. mkfontdir ~/localxfonts/Type1; mkfontdir ~/localxfonts/BDF
  5. For Mac OS X 10.4, do cp /etc/X11/xinit/xinitrc ~/.xinitrc; chmod 644 ~/.xinitrc
    for Mac OS X 10.5, do cp /usr/X11/lib/X11/xinit/xinitrc ~/.xinitrc; chmod 644 ~/.xinitrc
  6. Add following lines in the ~/.xinitrc before the "exec quartz-wm" line:
    xset +fp "~/localxfonts/Type1"
    xset +fp "~/localxfonts/BDF"
  7. restart your X11 server

No comments: