How do I resolve certain font-related error messages when running Mathematica 4 on Unix?
 We have received a number of reports from Mathematica users with different distributions of Linux reporting error messages such as the following: xset: bad font path element (#38), possible causes are: Directory does not exist or has wrong permissions Directory missing fonts.dir Incorrect font server address or syntax These problems generally occur when your system has more fonts installed than the default number of fonts as specified by the file. | 1. | First, verify that the following two font directories have been added to the end of the file. |
| 2. | Restart the X font server. One way to do this would be to reboot your system. You can also restart the font server by issuing the following command. |
| | /etc/rc.d/init.d/xfs restart |
| | If that fails to restart the font server, you may want to try the following. For example, under RedHat 6.x, the font server is started by a boot script in . The name of the script is most likely named something like S90xfs. To restart the font server, you need to execute the script as root with the command line argument restart. |
| 3. | After starting an X session, evaluate the following command, noting the output. |
| 4. | Edit the file. Locate the line that reads @@resource maxForXListFonts. Change the number on the line that follows to a value that is greater than the number you received in Step 3. It may be a good idea to leave some margin for error. For example, it is recommended that you change this value to a number that is 5-10% greater than the value you received in Step 3. |
| 5. | Launch Mathematica to verify that it starts without error. |
If you continue to experience problems with your fonts, please contact Technical Support. Download this FAQ as a Mathematica 5.2 Notebook
Questions or comments? Send email to support@wolfram.com.
| |