[Tex/LaTex] How to enter 🅱 in latex

symbolsunicodexetex

I need to enter the 🅱 sign in LaTeX for a paper I'm writing. I tried compiling my paper using XeLaTeX, but it just ignores 🅱. Is there perhaps a way to enter the 🅱's Unicode code point itself into LaTeX that I'm missing?

Best Answer

The Apple Color Emoji font that contains this particular character doesn't encode its glyphs as regular characters and can't be used. See Emoji Characters. There seem to be very few fonts which contain these glyphs (the Enclosed Alphanumeric Supplement in Unicode).

On my machine (a Mac), only one font contains them: the Hiragino fonts. Here's an example that works for me (compile with LuaLaTeX, not XeLaTeX, which didn't work for me.)

\documentclass{article}
\usepackage{fontspec}
\usepackage{xcolor}
\newfontfamily\Hiragino{Hiragino Sans}[Color=red]
\begin{document}

{\Huge\Hiragino 🅱}
\end{document}

output of code