10

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

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}
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.