How to use downloaded fonts?

How to use downloaded fonts with XeTeX on Ubuntu

  • I am wanting to use the http://www.exljbris.com/fontin.html 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)

  • Answer:

    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}

Peter Smit at TeX - LaTeX Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.