For our example we'll use the following selection of fonts from Google Fonts:
The example project outlined below shows how to create folders, upload fonts and configure them with fontspec. Once the OpenType fonts are uploaded, set the project compiler to X ƎL aT eX (or LuaL aT eX) and use fontspec to configure your fonts.
To use OpenType fonts which are not installed on Overleaf's servers, you must first upload the font files to your Overleaf project-provided the font licenses permit this. Using fonts not installed on Overleaf's servers: Google Fonts example Open this XeLaTeX example on Overleaf to explore the Noto fonts In this example, the document font is set using \usemainfont. Times New Roman is a commonly-used font and here's an example of its use on Overleaf via the XeLaTeX compiler. Anyone interested to better understand the evolution of different TeX engines may wish to read the Overleaf article What's in a Name: A Guide to the Many Flavours of TeX. The corresponding LaTeX compiler on Overleaf is called xelatex. However, unlike Knuth's original program, XeTeX natively reads (inputs) UTF-8 encoded Unicode text and, with assistance from its built-in HarfBuzz shaping engine, supports modern font formats such as OpenType (OTF) and SIL's Graphite font technology. XeTeX is a typesetting engine derived from Donald Knuth's original T eX software.
4.1 Fonts installed on Overleaf's servers: Google Noto fonts.3 Setting fonts for different LaTeX elements.