For the longest time, I have written LaTeX documents on Unix or Linux. Due to several reasons, I'm actively planning to move this to Mac. I installed Mactex, Linux Libertine fonts, RomDev.tec and sanskrit 2003.ttf fonts.

My document uses Linux Libertine and several Indian language fonts, most important being Sanskrit 2003 (ttf).

To transliterate Sanskrit, I use Somadeva Vasudeva's RomDev scheme that uses a mapping file.

Here is a MWE that works on linux but not on the mac, I get fontspec error: "font-not-found"

The font "Linux Libertine" cannot be found

I believe I have all the required fonts in my mac. How do I verify if they are a) present and b) configured for xelatex to find them.

\usepackage{polyglossia} % the multilingual support package
\setdefaultlanguage{english} % this is mostly going to be English text, with
\setotherlanguage{sanskrit} % some Sanskrit embedded in it.

\usepackage{xltxtra} % standard for nearly all XeLaTeX documents
            ItalicFont={TeX Gyre Schola Italic},
            BoldItalicFont={TeX Gyre Pagella Bold Italic}]
            {Linux Libertine O}
\setsansfont[Ligatures=TeX, Scale=0.9]{Linux Biolinum O}
\setlength{\parskip}{12pt} % 1ex plus 0.5ex minus 0.2ex}

\newfontfamily\devanagarifont{Linux Libertine}
\sanskritunicode [Script=Devanagari,Mapping=RomDev]{Sanskrit 2003}


\newfontfamily\sa{Sanskrit 2003:script=deva}% Write Devanagari natively 

  {\leftskip=1em \rightskip=1em }%
  {\ifhmode \par \fi}

\newcommand\sloka[1]{\begin{sanskrittext}\setlength{\parindent}{0pt}{\large \skt
    {\normalsize \textit{#1}}\end{sanskrittext}\medskip}



{\Large \sa ॐ }

Everything is rooted in time, kāla:\\
kālamūlamidaṃ sarvaṃ bhāvābhāvau sukhāsukhe

  • 1
    You have to copy the fonts in the /Library/Fonts folder in order that XeTeX can find them by name. Notice that xltxtra is needed for a really small number of documents nowadays. Just load fontspec instead.
    – egreg
    Oct 8, 2018 at 6:51
  • I copied the Libertine otf fonts to /Library/Fonts and replaced \usepackage{xltextra} with \usepackage{fontspec}. The error still remains.
    – jayr
    Oct 8, 2018 at 12:49
  • Open the Font Book application and make sure it finds those fonts. Oct 8, 2018 at 16:00
  • Did that. Now it stops at l.19 \newfontinstance It appears it is having problem processing: \newfontinstance \sanskritunicode [Script=Devanagari,Mapping=RomDev]{Sanskrit 2003}
    – jayr
    Oct 8, 2018 at 20:24

1 Answer 1


I solved this myself. The problems that I were encountering were two fold. TeX Live 2018 is the primary culprit. I could not compile my document on a fresh install of TeX Live 2018 on a Linux VM. I installed TeX Live 2015 version to compile without error. Next I installed TeX Live 2015 in my MBP. For fonts, I copied the TeX Gyre fonts to a separate local folder as Mac cannot read texlive fonts (& reason being Finder is not good at navigating system directories in MBP). I did the same for Indic fonts. Added these to Fontbook and voila, my book compiled successfully.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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