Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to display Emoji Characters inside my XeLaTeX Document. It seems to work for some glyphs like the numbers and pound sign but not for all. Here is a MWE:

\documentclass{scrartcl} 
\usepackage{fontspec}

\setmainfont{Apple Color Emoji} % The emoji Font 

\begin{document}
\char"0030{}  %Works
\char"1F60D{} % Doesent Work should out put SMILEY FACE WITH HEART SHAPED EYES
\end{document}

What is the reason for this strange behavior and is there a way to include Emojis in XeLaTeX?

Edit: selected emjoi

It seems the Character is there. It is selectable but not visible. I can copy&paste it.

share|improve this question
    
How doesn't it work? Fails to compile? Wrong glyph? No glyph? Are there error messages in the .log file that would help us? –  Seamus Dec 27 '12 at 13:48
    
Welcome to TeX.SX. –  Claudio Fiandrino Dec 27 '12 at 13:56
    
@Seamus It does compile without any warnings beside the LaTeX warning: "xparse/redefine-command". It is just that the glyph is not there. The first one (an zero) is there but there is no smiley face. –  lemen Dec 27 '12 at 13:59

1 Answer 1

up vote 1 down vote accepted

Apple's emoji aren't encoded as normal characters do. They are in fact some PNG-like images embedded in some proprietary table in the AppleEmoji font. There is no reason to ever expect support of this Apple(tm) feature in XeLaTeX.

You might try to google if someone has found a way to export the smileys as separate images and import them in your document.

Or you might try an alternative based on other fonts that properly encode the characters as vector glyphs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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