0

My code are follows:

\documentclass{book}

\usepackage{xltxtra}
\usepackage{xunicode}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\usepackage{unicode-math}%

\setmainfont[Mapping=tex-text, Path = ../Fonts/TimesLTStd/ ,
UprightFont= TimesLTStd-Roman.otf ,
BoldFont=TimesLTStd-Bold.otf ,
ItalicFont=TimesLTStd-Italic.otf,
BoldItalicFont=TimesLTStd-BoldItalic.otf
]
{TimesLTStd-Roman}

\begin{document}

This is for test
\end{document}

And the output generated nicely, but in PDF font Encoding is shown as below:

enter image description here

But if I use either LaTeX, dvips, ps2pdf or PDFLaTeX font encoding is shown below:

enter image description here

My requirement is XeLaTeX PDF font encoding should be same as LaTeX or PDFLaTeX created output. Please suggest..

  • 2
    pdflatex uses fonts with at most 256 characters xelatex uses fonts with several thousand characters, how can you have a requirement to use the same encoding???? – David Carlisle Apr 9 '18 at 17:26
  • 2
    unrelated but you shouldn't use xltxtra and probably not xunicode with current xelatex – David Carlisle Apr 9 '18 at 17:28
  • 2
    Why does this kind of encoding matters? – Heiko Oberdiek Apr 9 '18 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.