XeTeXXeLaTeX - fonts available only with sudo!

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
Keta
Posts: 63
Joined: Tue Nov 25, 2008 1:00 pm

XeLaTeX - fonts available only with sudo!

Post by Keta »

Hi all,

I installed some otf fonts in my Ubuntu machine, under the /usr/local/share/fonts directory, and run fc-cache -f -v as told by the instructions I found over internet. Supposedly, the fonts are now correctly installed in my computer.

Running XeLaTeX with fontspec, however, did not recognize the fonts. Even if I copy some font to the directory where the TeX file is (and using ExternalLocation in fontspec) XeLaTeX does not get the font. However, I tried with sudo (that is, sudo xelatex file.tex) and it worked!

It seems like Xe(La)TeX does not have the right permissions to access the font files. How can I solve this problem? In my previous Ubuntu installation I did not have this problem... :?

Keta
Last edited by Keta on Sat May 16, 2009 11:41 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Keta
Posts: 63
Joined: Tue Nov 25, 2008 1:00 pm

XeLaTeX - fonts available only with sudo!

Post by Keta »

More things:

I copied more font files to the mentioned directory, and I did not run fs-cache afterwards. XeLaTeX DOES recognize these new files. Still, the files mentioned in the previous post are not accessible unless I use sudo. What's happening?
Post Reply