1

I was trying to display IPA symbols using the font Linux Libertine O in xetex. However, the following error occured,

Package fontspec Error: The font "Linux Libertine O" cannot be found.

How to solve this issue. Code snippet is given below.

\documentclass[12pt]{article}

\usepackage{xcolor}
\usepackage{listings}
\usepackage{booktabs}
\usepackage{array}
\usepackage{float}
\usepackage{graphicx}  
\usepackage[utf8]{inputenc}
\usepackage{polyglossia}
\usepackage{fontspec}
\setmainlanguage{english}
\setmainfont{Linux Libertine O} % use any font on your system that has the IPA symbols you need
\setotherlanguage{bengali}
\newfontfamily\bengalifont[Script=Bengali]{Vrinda}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{makecell, tabularx}
\newcolumntype{L}{>{\raggedright\arraybackslash}X}
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{tipa}
\usepackage{newfloat}
\DeclareFloatingEnvironment[
    fileext=los,
    listname={List of Diagrams},
    name=Diagram,
    placement=tbhp,
    within=none,
]{diagram}



\begin{document}

\begin{table}[htb] % <--- "here", "top", "bottom"
    \setcellgapes{2pt}
    \makegapedcells
\caption{Text Text Text Text}
    \begin{tabular}{lcr}
    \toprule
    \toprule
\makecell[lb]{Misspelled Word}
            & \makecell[b]{Correct Word}
                                & \makecell[b]{Translation in English}\\
    \midrule
\textbengali{পাহাড } (IPA: paɦaɖ) & \textbengali{পাহাড়}(IPA: paɦaɽ) & Mountain \\ % make sure you keep only the Bangla text (and not the IPA) within \textbengali{}
\textbengali{বিশেয}(IPA: biʃedʒ) & \textbengali{বিশেষ}(IPA: biʃeʃ) & Special \\
\textbengali{ফুটরল}(IPA: pʰuʈrɔl) & \textbengali{ফুটবল}(IPA: pʰuʈbɔl) & Football \\

    \bottomrule
    \bottomrule
    \end{tabular}
  \label{table9}
\end{table}

\end{document}
  • 1
    Have you installed this font? What distribution of Linux you are using? – Majid Abdolshah Apr 12 '19 at 5:31
  • I am new in Latex. I am not using Linux, I am using Windows. I thought this is the font name I found in stackexchange. I don't know how to install a font in latex. I am using Miktex. Thank you – Nahid Hossain Shihab Apr 12 '19 at 6:21
  • Did you have a look in here? windows - How to install fonts - TeX - LaTeX Stack Exchange. – Majid Abdolshah Apr 12 '19 at 6:24
  • I don't have the Vrinda font but beside this it compiles fine in miktex. The font used is in the miktex folder in fonts/opentype/public/libertine/LinLibertine_R.otf. Check if you have it. Is your miktex up-to-date. – Ulrike Fischer Apr 12 '19 at 7:14
2

You will have to use a font that you have on your computer (just as I had to download Vrinda to mine for your code). Linux Libertine O is available for free download, as are the others I mentioned in my answer to your original question. If you have Microsoft products on your computer, you may have some fonts that have a few IPA symbols (Calibri, Cambria, Times New Roman, etc.), but they might not work well with diacritic stacking or overbars.

There's no IPA font that is perfect in every respect (e.g., Linux Libertine O is missing a few superscript IPA characters and has clashing overbars, Charis SIL doesn't have ligatures or true small caps, Gentium doesn't have ligatures or true bold or true small caps). See this answer and this answer for more discussion.

You can also use \usepackage{libertine} to get Linux Libertine O but that doesn't generalize to other IPA fonts like the \setmainfont with a system font does.

| improve this answer | |
1

I remember having similar problems, trying to remove the "O" (don't think that helped), etc.

What I ended up doing was using the Libertinus fonts (a fork of the Libertine fonts). You can find them here.

After installing them in ~/.fonts and running fc-cache -f -v, and making sure you're using LuaTeX or XeTeX, you can put something like

\setmainfont[
Ligatures=TeX
]{Libertinus Serif}
\setmathfont{Libertinus Math}
\setsansfont[
Ligatures=TeX
]{Libertinus Sans}
\setmonofont[
Ligatures=TeX,
Scale=0.95
]{Libertinus Mono}

In your preamble/style file.

| improve this answer | |

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.