[XeTeX] Insert Smileys in XeLaTeX
Simon Cozens
simon at simon-cozens.org
Tue Dec 16 13:32:14 CET 2014
On 16/12/2014 20:24, Marek Stepanek wrote:
> I put together a test file, based on the first example. I replaced the
> "Linux Libertine O", which is not installed on my computer, with Lucida
> Grande. This font is displaying these smileys well in my text editor
> BBEdit and my Terminal too (with an other font: Menlo Regular), but not
> in the compiled XeLaTeX-file.
The problem is that in your terminal and BBEdit, the system is
performing font substitution; neither Menlo nor Lucida Grande contain
the emoji characters, so the system shows you the characters in a
different font. (Probably Apple Color Emoji)
For some reason I can't get xelatex to use Apple Color Emoji, but the
Symbola font (available from http://users.teilar.gr/~g1951d/Symbola.zip
) also contains those characters. Install that font, add in this line:
> \section{Smileys}
\fontspec[Symbola]
> - - - - - - - - ...
and it should all work.
More information about the XeTeX
mailing list