====== Fixing Mathematica Fonts in Windows ====== ===== The Problem: ===== You may receive the following error upon evoking Mathematica program: 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 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 assertion `GenericUnicodeFont != 0' at MathEditFont.c:43 failed assertion `GenericUnicodeFont != 0' at MathEditFont.c:43 failed assertion `GenericUnicodeFont != 0' at MathEditFont.c:43 failed {{:wiki:software:scientific:mathematica:errorpnl.gif|}} ===== A Suggested Solution: ===== You would need to correct the problem before you can run **Mathematica**. To correct the problem, please follow the steps below (assuming that you have **NCD's PC-Xware** installed on your PC running Windows): - Download and install necessary fonts to a specified directory on your local machine. The fonts may be found on the following link: {{:wiki:software:scientific:mathematica:pcfwin.zip|}} Make sure you remember the location in which you downloaded the PCF.zip file to. - Create a directory in the **pcxware** sub-folder (sub-directory) **(Program Files -> ncdsoft -> pcxware )**. You may call it whatever you want. In this example, I named this folder "math". - Unzip (expand) the zipped files to the "math" directory. (you would need an unzip program such as winrar program) Make sure all of the ***.pcf** files in the expanded PCF folder are moved out to the "math" folder. You may delete empty folders that are created during the file expansion (unzip). - The next step is to set the correct font path in **PCX-ware configuation** to point to the "math" folder containing the downloaded pcf files you've just created above. To do this, click on PCX-ware icon in the system tray in your toolbar. Then select **"Configure PC-Xware"**. A configuration panel like one shown in Figure 1 should pop up. In the "Defaut" window of "Font Path" group in the **Configuation panel**, append to the existing string the following entries: mswin, math, where "math" is the name of the directory created in Step 1 - Make sure you click on the "Apply" button and then the "OK" button to complete the configuration process {{:wiki:software:scientific:mathematica:pcxwconfig.jpg|Figure 1 - PC-Xware Configuration - Font Path Setting}} - Click on the icon in the system tray to select **"Reset X-server"** menu to refresh the settings. You don't need to reboot you Window session.