Article Title : WordPerfect font problems Creation Date : 07/29/93 Message ID : CGLNHQ Last Update : 08/30/93 Expiration Rules : unknown ================================================================= The following is the text of a fax from WordPerfect. We have one correction to make to it. When WP wrote their dofonts script, we were using .snf fonts, hence they refer to "ncdbdftosnf". In NCDware 3.0 we are now using .pcf fonts, so that the customer will need to edit the dofonts script to change occurrences of ncdbdftosnf to ncdbdftopcf. An edited version is given at the end of this article. NCD XTERMINALS NCD Xterminals have their own format for fonts. Consequently, no matter what platform one is attached to, the fonts that ship with WP don't work. To get around this problem for 5.1, you will need to do the following: 1. Create a new directory where font conversion can take place. 2. Copy the .bdf fonts and the dofonts script from the WP shlib directory to the conversion directory and then go to that directory. 3. Edit the dofonts script file (very simple) and change bdftosnf to the complete path name for NCD's version of this utility. Usually this is called ncdbdftosnf. (Don't confuse this with OS's version usually called bdftosnf) You will need to know where this is located. If you don't know where it is or if you do not have this file, you will have to call NCD. 4. Run the edited version of dofonts. This converts the standard .bdf fonts to NCD format .snf fonts. 5. Run NCD's mkfontdir, which is usually called ncdmkfontdir. If you don't have this file, you will need to call NCD. This will create a new NCD's fonts.dir file that includes the WP fonts. 6. Add this new font directory to the existing fontpath with "xset fp+ " (An "X" error at this point indicate that the fonts.dir file did not get successfully created). This step needs to work. If it does not, you will need to call the OS or the Xterminal emulator package company to find out why it didn't. 7. You then need to rehash the font path by typing "xset fp rehash". 8. Now if you type "xlsfonts | grep wp" (xlsfonts must be in the path or specify the full path), wppc14 should show up. If it doesn't, the system is not finding the font in the fontpath. If it lists the font and you still get font errors with xwp that means it is finding the font but the font is still in the wrong format. 9. You should be able to successfully run xwp. The above information is specific to NCD and Motif, but the principles apply to any situation where the fonts shipped with the product don't match the user's current environment (due to brand of Xterminal, rlogging in, X emulator on a PC, etc). #!/bin/sh # WordPerfect 'dofonts' script to convert wp bdf fonts to pcf fonts # suitable for use with NCD terminals. # You must have the programs 'ncdbdftopcf' and 'ncdmkfontdir' in your # command path. They are distributed with the NCD software. Other # versions of these programs may work as well. They are distributed # with the MIT X11 release. set -x for i in wp*.bdf do ncdbdftopcf < $i > `echo $i | sed 's/bdf/pcf/'` done ncdmkfontdir