11

As discussed in How to use Noto Color Emoji with lualatex, in the dev version of lualatex one can use color emoji directly:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Apple Color Emoji}[Renderer=Harfbuzz]
\begin{document}
Text 😺 emoji 👅
\end{document}

But the normal latin letters are not displayed:

img

Is it possible to automatically select the font for emoji without changing the normal text font, just like luatexja/xeCJK for CJK ideographs?

2

2 Answers 2

3

If you, one day, would like to use pdfLaTeX or with the engine lualatex there is a new recent package (April 2021) named twemojis. Here there is an example.

\documentclass[a4paper,12pt]{article}
\usepackage{twemojis}
\begin{document}
Text {\twemoji{grinning cat}} emoji {\twemoji{tongue}}
\end{document}

enter image description here

2

You need font which has letters you need.

I didn't had Apple Color Emoji font so I used symbola.

emojis

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Libration Sans}
\newfontfamily{\emojifont}{Apple Color Emoji}[Renderer=Harfbuzz]
\begin{document}
Text {\emojifont 😺} emoji {\emojifont 👅}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .