summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/emotion/emotion.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex/emotion/emotion.sty')
-rw-r--r--macros/unicodetex/latex/emotion/emotion.sty11
1 files changed, 4 insertions, 7 deletions
diff --git a/macros/unicodetex/latex/emotion/emotion.sty b/macros/unicodetex/latex/emotion/emotion.sty
index 34b02f82ed..7e4070dd39 100644
--- a/macros/unicodetex/latex/emotion/emotion.sty
+++ b/macros/unicodetex/latex/emotion/emotion.sty
@@ -1,12 +1,12 @@
\RequirePackage{expl3}
-\ProvidesExplPackage{emotion}{2024/02/06}{0.1}{LaTeX emoji}
+\ProvidesExplPackage{emotion}{2024/02/13}{0.2}{LaTeX emoji}
\RequirePackage { fontspec }
\ExplSyntaxOn
% add emotion command
-\newfontface \emotionfont: { Apple~Color~Emoji } [ Renderer = Harfbuzz ]
+\newfontface \emotionfont: { Twemoji~Mozilla } [ Renderer = Harfbuzz ]
% enable update emoji font
\newcommand{\emotionsetup}[1]{
@@ -23,17 +23,14 @@
% import pre-defined emotion
\file_input:n { emotion.def }
-\tl_set:Nn \l__emotion_tmp_tl {❓}
+\tl_set:Nn \l__emotion_nodef_tl {❓}
\newcommand{\emotion}[1]{
-\group_begin:
-\tl_set:Nn \l__emotion_tmp_tl {#1}
\ifcsname l__emotion_#1\endcsname
{\emotionfont:{\tl_use:c {l__emotion_ #1}}}
\else
- {\emotionfont:{\tl_use:N \l__emotion_tmp_tl}}
+ {\emotionfont:#1}
\fi
-\group_end:
}
\ExplSyntaxOff