# How to add Symbola to Overleaf v2 as not the main font?

I'm trying to migrate from Overleaf v1 to v2 to take advantage of TeXLive 2017 (compared to 2016 for v1), however Overleaf v2 doesn't include the Symbola font, which I rely on to supply occasional unicode characters, e.g., ⓧ or ⌘, and which font is included in v1.

I'm trying to follow the Overleaf Help document "I have a custom font I'd like to load to my document. How can I do this?"

I've downloaded Symbola.ttf from George Douros' Unicode Fonts for Ancient Scripts, and I've uploaded this file to the root of my LaTeX project in Overleaf v2.

Because Symbola was built into v1, in order to render a unicode character all I had to do was a command like \fontspec{Symbola}{\symbol{"2468}} to get a "circled 9."

Notwithstanding that I uploaded the Symbola.ttf file to my Overleaf project, these commands aren't working—I'm sure because I need to tell Overleaf to look at Symbola.ttf.

The fontspec commands referenced in the Overleaf Help doc, e.g., \setmainfont{[CrimsonText-Regular.ttf]}, (or \setsansfont and \setmonofont) seem aimed at fonts that you will use as your main fonts. Instead, I just want \fontspec to recognize Symbola on an ad hoc basis.

What command, or whatever incantation, should I issue to let LaTeX/Overleaf know that when I say \fontspec{Symbola}{\symbol{"2468}}, I want LaTeX/Overleaf to find the Symbola.ttf file in the root of my Overleaf project?

• \newfamily\symbolafont{Symbola.ttf}\newcommand*\symbola[1]{\symbolafont\symbol{#1}} or similar? You haven't given an MWE, so this is obviously untested. – cfr Jul 18 '18 at 0:16
• @cfr, I corrected your spelling, from \newfamily to \newfontfamily, i.e., \newfontfamily\symbolafont{Symbola.ttf} and that was exactly what I needed to get the Symbola font recognized. \documentclass{article} \usepackage{fontspec} \newfontfamily\symbolafont{Symbola.ttf} \begin{document} The command key on the Macintosh is \symbolafont{⌘}. A circled-9 character is: \symbolafont{\symbol{"2468}}. \end{document} – Jim Ratliff Jul 18 '18 at 1:09
• You are being too polite: I obviously misremembered the macro's name. But I'm glad it helped. (And it is true I can't spell for toffee.) – cfr Jul 18 '18 at 1:19
• @JimRatliff You might want to make that something like \newcommand\circ9{{\symbolafont\symbol{"2468}}\relax}, so that it doesn’t switch the following text to Symbola or gobble up trailing spaces. (Also untested.) – Davislor Jul 18 '18 at 2:02
• @Davislor, in fact, the fontspec documentation, <mirror.ox.ac.uk/sites/ctan.org/macros/latex/contrib/fontspec/…>, addresses the "doesn't switch the following text to Symbola point" and prescribes a different solution, e.g., in \newcommand\textnote[1]{{\notefont #1}}, it says "Note that the double braces are intentional; the inner pair are used to to delimit the scope of the font change." – Jim Ratliff Jul 18 '18 at 5:30