2014-12-16 12:24 GMT+01:00 Marek Stepanek <ma...@munich-taxis.de>: > > > Hello all! > > > It's quite a while, that I am reading this newsgroup. But I was always > using LaTeX. Now I am close to switch to XeLaTeX or even XeTeX. > > I want to offer for Christmas a large dialogue with SMS put into a > LaTeX-file. And it turns out to be a huge problem, because one day my > girl-friend discovered the icons and smileys on her iPhone ... You > imagine the disaster :-) > > My first step was going to wikipedia: http://en.wikipedia.org/wiki/XeTeX > > 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. > 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 > Here my example: > > - And thank you for your help - it is urgent - for obvious reasons :-) > > > marek > > > *** > > \documentclass[11pt]{article} > \usepackage{fontspec} > % from an other example to test the smiley: > %\usepackage{txfonts} > % not installed: > % \setmainfont[Ligatures=TeX]{Linux Libertine O} > % and here are some Problems: > % \setmainfont[Ligatures=TeX]{Menlo Regular} > \setmainfont[Ligatures=TeX]{Lucida Grande} > \begin{document} > \section{Unicode support} > > \subsection{English} > All human beings are born free and equal in dignity and rights. > > \subsection{Íslenska} > Hver maður er borinn frjáls og jafn öðrum að virðingu og réttindum. > > \subsection{Русский} > Все люди рождаются свободными и равными в своем достоинстве и > правах. > > \subsection{Tiếng Việt} > Tất cả mọi người sinh ra đều được tự do và bình đẳng về nhân phẩm và > quyền lợi. > > \subsection{Ελληνικά} > Ὅλοι οἱ ἄνθρωποι γεννιοῦνται ἐλεύθεροι καὶ ἴσοι στὴν ἀξιοπρέπεια > καὶ τὰ δικαιώματα. > > \section{Legacy syntax} > When he goes---``Hello World!''\\ > She replies—“Hello dear!” > > % \section{Ligatures} > % \fontspec[Ligatures={Common, Historical}]{Lucida Grande Bold} > % Questo è strano assai! > > % \section{Numerals} > % \fontspec[Numbers={OldStyle}]{Lucida Grande}Old style: 1234567\\ > % \fontspec[Numbers={Lining}]{Lucida Grande}Lining: 1234567 > > \section{Smileys} > 😘 - 👃 - 💓💛💞💗💕💓 - 🐒 - 🚨🚁 - 🏁 - 😇 - 👷👃🐻 - 🍇🍞🍗🍴💊 ... > > \end{document} > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex