XeTeXfontspec | Use Font in "home" Directory

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

fontspec | Use Font in "home" Directory

Post by AleCes »

I've got to test a new build of FreeSerif, which is installed by default in /usr/share/fonts, I cannot remove the old version because there are too many dependencies, too much of trouble. So I manually installed the newer version in ~/.fonts
Following the fontspec manual, I thought such a line might be OK:

Code: Select all

\fontspec[Path= ~/.fonts/, BoldFont=*Bold, ItalicFont=*Italic, BoldItalicFont=*BoldItalic]{FreeSerif}
But I keep on getting fontspec warnings that the font does not exist!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply