[XeTeX] Insert Smileys in XeLaTeX

Zdenek Wagner zdenek.wagner at gmail.com
Tue Dec 16 17:34:24 CET 2014

2014-12-16 17:04 GMT+01:00 Marek Stepanek <marek at munich-taxis.de>:
> Thank you Zdeněk Wagner and Simon Cozens for your immediate help. Very
> interesting suggestions you made. I never cared much about font
> questions before. I even did not know, where to look for them on my Mac ...
> Yes. It is the font Apple Color Emoji. But all tricks (but I dont know
> many) to make it render with this font and xelatex were not working.
> Also the suggested Symbola-font is not doing it.
> Is there an easy way, to map the codepoints with little icons? For
> example: UTF8 F0 9F 98 98 (U+1F618 (U+D83D U+DE18)) goes with this icon
> etc ...
There must be something wrong in your computer. I have installed
Symbola in my Fedora Linux and now I see all symbols even in your
mail. Are you sure that the font is properly installed? Do you have
eny error message?

I do not know Mac, I only know how to ask fontconfig in Linux whether
the font can be located. It returns quite a lot of information but the
very beginning is important:

$ fc-match -v Symbola
Pattern has 32 elts (size 48)
        family: "Symbola"(s)
        familylang: "en"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Symbola"(s)

The only change I made in your file is as follows:

The font does not contain characters for all languages, e. g.
Vietnamies, otherwise the document compiles without errors, see the
attached PDF. This means that you should use other font for texts.
Automatic switching may be achieved by the ucharclasses package.

Zdeněk Wagner

> Thank you again
> marek
> On 16/12/14 13:33, Zdenek Wagner wrote:
>> I do not see all your smileys on my computer which means that I do not
>> have a proper font installed. What you should do first is to make sure
>> that Lucida Grande really contains the characters. Visibility in a
>> text editor is not a good proof. Font rendering engines usually work
>> in such a way that if a character is not present in the current font,
>> they render it using a replacement font. The idea is that a reasonable
>> character in a reasonable font must always be displayed. However,
>> Xe(La)TeX does not do that. If a character is missing, it is treated
>> as a missing character exactly as in the original 8-bit TeX. You
>> should display the character map by some application and verify
>> existence. You can use fontforge. If you use gucharmap, you have to
>> right-click to the character in order to find which font was used for
>> rendering it.
>> Hope this hepls.
>> Zdeněk Wagner
>> http://hroch486.icpf.cas.cz/wagner/
>> http://icebearsoft.euweb.cz
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbols.pdf
Type: application/pdf
Size: 26613 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20141216/81b5dc53/attachment-0001.pdf>

More information about the XeTeX mailing list