# Removing TeX fonts from being system-wide

After reading XeTeX can't find font I executed

sudo cp \$(kpsewhich --var-value TEXMFSYSVAR)/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache -fsv


I am now trying out MathJax and I find that I need to remove the TeX fonts that were made system-wide so that I can test meaningfully. Is there any way to reverse the above process using the CLI?

FYI, I am on a Ubuntu 11.10 64-bit system running TeX Live 2011.

-

## 1 Answer

Well, your code seems to have copied texlive-fontconfig.conf to /etc/fonts/conf.d/. You might simply want to delete that file from there.

sudo rm /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache -fsv

-
In Ubuntu you can try this: ubuntugeek.com/… –  NVaughan Apr 13 '12 at 14:28
Or you can manually edit your ~/.fonts or ~/fonts.conf (I don't remember which one, as I no more use Linux.) –  NVaughan Apr 13 '12 at 14:29
I am looking to reverse my steps automatically. I made them system-wide with two commands and am looking for one or two commands to disable them in the same way. To disable them one by one by hand using font management utilities means that one must recognize them, and then remove them, possibly one at a time, and not miss any. I will try that only as a last resort. –  chandra Apr 13 '12 at 15:45
Well, your code seems to have copied texlive-fontconfig.conf to /etc/fonts/conf.d/. You might simply want to delete that file from there. –  NVaughan Apr 13 '12 at 16:42
sudo rm /etc/fonts/conf.d/09-texlive.conf and then again sudo fc-cache -fsv –  NVaughan Apr 13 '12 at 16:43