Discussion:
[XeTeX] \XeTeXgenerateactualtext and Apple Preview
Maïeul
2017-09-07 09:19:58 UTC
Permalink
Hi,

consider the following MWE (XeLaTeX)

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Libertinus Serif}
\XeTeXgenerateactualtext 1

\begin{document}
\Huge
\textbf{\emph{0123456789}}

\end{document}

The font libertinus serif can be found here
https://ctan.org/pkg/libertinus

With Adobe READER, a pastebin of the PDF output is ok (we get numbers.)
With Apple Preview, we does not get the good characters.

Is it a problem of Apple Preview or a XeTeX bug?

Note that with LuaLaTeX

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Libertinus Serif}


\begin{document}
\Huge
\textbf{\emph{0123456789}}

\end{document}

We get a pastebinable PDF with Appel Preview.

Best regards

Maïeul



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
Zdenek Wagner
2017-09-07 12:40:45 UTC
Permalink
IMHO it is a problem of Apple Preview. Not all PDF viewers understand
ActualText.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Maïeul
Hi,
consider the following MWE (XeLaTeX)
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Libertinus Serif}
\XeTeXgenerateactualtext 1
\begin{document}
\Huge
\textbf{\emph{0123456789}}
\end{document}
The font libertinus serif can be found here
https://ctan.org/pkg/libertinus
With Adobe READER, a pastebin of the PDF output is ok (we get numbers.)
With Apple Preview, we does not get the good characters.
Is it a problem of Apple Preview or a XeTeX bug?
Note that with LuaLaTeX
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Libertinus Serif}
\begin{document}
\Huge
\textbf{\emph{0123456789}}
\end{document}
We get a pastebinable PDF with Appel Preview.
Best regards
Maïeul
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Maïeul Rouquette
2017-09-07 13:30:07 UTC
Permalink
but what LuaLaTeX is able to produce output usable by Apple Preview?
IMHO it is a problem of Apple Preview. Not all PDF viewers understand ActualText.
Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Hi,
consider the following MWE (XeLaTeX)
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Libertinus Serif}
\XeTeXgenerateactualtext 1
\begin{document}
\Huge
\textbf{\emph{0123456789}}
\end{document}
The font libertinus serif can be found here
https://ctan.org/pkg/libertinus
With Adobe READER, a pastebin of the PDF output is ok (we get numbers.) With Apple Preview, we does not get the good characters.
Is it a problem of Apple Preview or a XeTeX bug?
Note that with LuaLaTeX
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Numbers=OldStyle]{Libertinus Serif}
\begin{document}
\Huge
\textbf{\emph{0123456789}}
\end{document}
We get a pastebinable PDF with Appel Preview.
Best regards
Maïeul
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
--------------------------------------------------
Subscriptions, Archive, and List information, etc

Loading...