0

This question already has an answer here:

Still looking for a way to get all those special chars covered that I need in my project. So I tryed to use XeTeX as it seems to work best with Unicode. And it does. Nearly. At least it shows chars that other compilation systems don't show. But some of them are shown as square, as if the font family wouldn't contain them, but it definitely does!

\documentclass[11pt]{article}
\usepackage{xltxtra}

\setmainfont[Mapping=tex-text]{Times New Roman}

\begin{document}
123456789↊↋0 °á ô
\end{document}

The font type of my editor is Times New Roman and all chars are shown while coding. But when I render the preview it only shows squares instead of ↊ and ↋. Why?

marked as duplicate by egreg fonts Jul 1 '17 at 22:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • XeTeX perhaps find some other font. Add \XeTeXtracingfonts=1 to get more info in the log-file. Btw: xltxtra is more or less obsolete, use simply fontspec. And the Mapping is not needed if your system is not too old. – Ulrike Fischer Jun 12 '17 at 18:38
  • Okay thanks! I deleted the obsolete stuff and it still works. But the main problem isn't solved. Can't quite find out what it is doing but changing the font definitely works correctly so I guess it should be Times New Roman when I tell it to be. Is there a command list für XeTeX anywhere? Per haps I can help myself. Didn't find any by googleing. – DonMeles Jun 12 '17 at 18:56
  • What happens if you use lualatex instead of xelatex? – Ulrike Fischer Jun 12 '17 at 19:10
  • On my machine (Mac OS X) the Times New Roman font doesn't cover those characters. I have several fonts on my system (free or included in the OS) and only Symbola covers them. What makes you think they're covered? – egreg Jun 12 '17 at 19:11
  • @ UlrikeFischer The chars are not shown, not even as squary thingys. @ egreg Times New Roman shows the chars in LibreOffice Writer and in the coding window of texmaker, just not in the resulting pdf. But thanks, I will try Symbola (if I have it on windows) – DonMeles Jun 12 '17 at 19:42
0

I finally found the answer! :D It is Here! I did as Werner said, but with Times New Roman and now all chars are shown properly! Thanks to all who tried to help! Case is closed. ;)

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