Following this answer, I tried to use Unicode emoticons with pdflatex
like so:
{\fontfamily{DejaVuSans-TLF}\selectfont ๐}
The font is selected but the emoticon does not show.
There are some TTF fonts which support the characters, such as Symbola, but apparently getting TTF fonts to work with pdflatex
is a pain in the butt.
Is there a way out?
Best Answer
Prepare the following file
and compile it with XeLaTeX. Then you can use the glyph via the so built PDF file:
Probably some tweaking with the borders in the
standalone
file is necessary.You can get the height of an uppercase letter in the current font by saying