Fonts & Character SetsOverleaf errors with Times New Roman and IPA

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
latexnoob2022
Posts: 7
Joined: Thu Jan 20, 2022 6:21 am

Overleaf errors with Times New Roman and IPA

Post by latexnoob2022 »

I have a LaTeX document with IPA symbols in built for XeLaTeX. I've used Times New Roman (which is unicode enabled) and am able to successfully build the document on my system (MaCOS).

However, on Overleaf, on the TeX code panel, the unicode is rendered correctly. When I try to build the PDF, this returns the following error:

Code: Select all

Missing character: There is no ̪ (U+032A) in font Times New Roman/OT:language=dflt;mapping=tex-text;!
Missing character: There is no ʈ (U+0288) in font Times New Roman/OT:language=dflt;mapping=tex-text;!
Has anyone faced issues with unicode-enabled fonts misbehaving on Overleaf like this? None of them except Doulos SIL are working for any special symbols when I build the PDF on Overleaf.

Thanks in Advance.

My code:

Code: Select all

\documentclass[12pt]{article}
\usepackage[a4paper,left=2.54cm,right=2.54cm,top=2.54cm,bottom=2.54cm]{geometry}
\usepackage{natbib}
\bibliographystyle{unsrtnat}
\usepackage{setspace}
\singlespacing
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}

IPA STUFF:

t̪ ɞ ɠ ɢ ʛ ħ
\end{document}

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Overleaf errors with Times New Roman and IPA

Post by Ijon Tichy »

I have the same warnings on my Linux machine. It is because the times.ttf that is used at this machine really does not provide the wanted glyphs. Maybe the font installed on your local machine has additional glyphs. Theoretically it would be possible to copy the font file to your project. But be careful! Commercial font licenses usually do not allow to do so!

Another suggestion would be to use a second font for the IPA stuff:

Code: Select all

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\IPA{Doulos SIL}
% \let\IPA\relax
\begin{document}

IPA STUFF:

{\IPA t̪ ɞ ɠ ɢ ʛ ħ}
\end{document}
On your local machine you activate the commented line in the example to use the main font instead of Doulos SIL for \IPA.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
latexnoob2022
Posts: 7
Joined: Thu Jan 20, 2022 6:21 am

Overleaf errors with Times New Roman and IPA

Post by latexnoob2022 »

Ijon Tichy wrote:I have the same warnings on my Linux machine. It is because the times.ttf that is used at this machine really does not provide the wanted glyphs. Maybe the font installed on your local machine has additional glyphs. Theoretically it would be possible to copy the font file to your project. But be careful! Commercial font licenses usually do not allow to do so!

Another suggestion would be to use a second font for the IPA stuff:

Code: Select all

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\IPA{Doulos SIL}
% \let\IPA\relax
\begin{document}

IPA STUFF:

{\IPA t̪ ɞ ɠ ɢ ʛ ħ}
\end{document}
On your local machine you activate the commented line in the example to use the main font instead of Doulos SIL for \IPA.
Thank you for your response! I did something like this as a workaround. What you said about the issue being the .ttf seems logical. I thought Times New Roman was unicode compatible, but if your system is giving the same error, then I suppose I will have to deploy 2 fonts.
Post Reply