Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am wanting to use the Fontin font in my XeTeX document.

What steps should I do for dowloading the font (should I choose TTF or OpenType) and where should it be stored (on Ubuntu)? How can XeTeX find this font?

I am using TexLive 2011 installed in a custom location (/somepath/texlive/2011)

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

Install the fonts in /usr/local/share/fonts if you want them system-wide or in ~/.fonts if you want them only for the current user:

$ sudo cp Fontin*.otf /usr/local/share/fonts

You can then check for the font in fc-list:

$ fc-list : family file | grep -i fontin
/usr/local/share/fonts/Fontin-SmallCaps.otf: Fontin SmallCaps,Fontin
/usr/local/share/fonts/Fontin-Italic.otf: Fontin
/usr/local/share/fonts/Fontin-Bold.otf: Fontin
/usr/local/share/fonts/Fontin-Regular.otf: Fontin

which gives you the name to use in XeTeX (using fontspec). For example:

\setmainfont{Fontin}
share|improve this answer
    
Shouldn't one run fc-cache for using the font immediately? –  egreg Sep 6 '11 at 12:18
    
@egreg: I thought so too for some time, and then I realized that it's automatically run on Ubuntu whenever you copy fonts to /usr/local/share/fonts. You can actually see it because the terminal is refreshed a second or so after you do the copy. That said, it doesn't hurt to run fc-cache anyway. –  ℝaphink Sep 6 '11 at 12:19
    
Do I understand right that I have to download the OpenType font? –  Peter Smit Sep 6 '11 at 12:21
    
Nice to know; it may be necessary on other systems, though. –  egreg Sep 6 '11 at 12:21
    
I assume I have to install fonts in ~/.fonts for user only fonts. Do I have to run fc-cache then? –  Peter Smit Sep 6 '11 at 12:22
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.