When compiliing with LuaLaTex, the font type Arial works:
\documentclass[english]{article}
\usepackage{lipsum}
\usepackage{fontspec}
\setsansfont[Ligatures=TeX]{Arial}
\begin{document}
\lipsum[1]
\end{document}
But if I use CAMBRIA.TTC it does not work:
\documentclass[english]{article}
\usepackage{lipsum}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{CAMBRIA.TTC}
\begin{document}
\lipsum[1]
\end{document}
The compilation fails also with the following variation in the code:
\documentclass[english]{article}
\usepackage{lipsum}
\usepackage{fontspec}
\setmainfont[Ligatures={TeX,Common}]{Cambria}
\begin{document}
\lipsum[1]
\end{document}
An error says Package fontspec Error: The font "CAMBRIA" cannot be found., but how to get it in Overleaf?
What is the correct way to use Cambria in Overleaf?



\usepackage{fontspec} \setmainfont{Calibri}and it does not work either (I get an error sayingPackage fontspec Error: The font "Calibri" cannot be found.) – Ommo Mar 07 '24 at 10:15The Cambria clone called Caladea and the Calibri clone is called Carlito. Both can be loaded with fontspec and compiled using XeLaTeX or LuaLaTeX.from: https://tex.stackexchange.com/questions/653270/how-can-i-select-cambria-or-calibri-fonts-in-overleaf-for-greek-language – Ommo Mar 07 '24 at 10:24CalibriandCambriaare the Windows fonts, whichOSyou are using – MadyYuvi Mar 07 '24 at 10:24Overleaf, please excuse – MadyYuvi Mar 07 '24 at 10:26