bkchem and fonts
When you try to import a bkchem-svg into to other programs like inkscape, you might suffer problems from fonts substitution, because the bkchem-fonts are not available to inkscape and vice versa. Here's how you make the fonts inkscape uses available to bkchem:
1. Locate the fonts. I did it with “fontmatrix”, that's a very comfortable program which allows you to browse the fonts installed on your system. You find them usually beyond /usr/share/fonts
2. Change to the directory, where the fonts you want to install are located
3. Run
mkfontscale
mkfontdir
4. Edit your /etc/X11/xorg.conf and add the directory to the FontPath in the Files-Section.
5. Restart X and the font should be available in bkchem.
Tips:
Issuing
xset +fp $PWD
adds the current directory temporarily to the FontPath
The following little script adds all Fonts beyond /usr/share/fonts which are no more the three directories away.
#!/bin/bash for i in /usr/share/fonts/*
do cd $i;
mkfontscale; mkfontdir; pwd
for j in *
do if test -d $i/$j
then cd $j; mkfontscale; mkfontdir; pwd
for k in *
do if test -d $i/$j/$k
then cd $k; mkfontscale; mkfontdir; pwd
ls -l | grep drwx
cd ..
fi
done
cd ..
fi
done
done