# Copying ccaron from pdf broken with the times font

There is problem with the pdf pdflatex generates from the following code

\documentclass{article}
\renewcommand{\rmdefault}{ptm}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\input glyphtounicode
\pdfgentounicode=1

\begin{document}
\v{c}\char"A3
\end{document}


When I copy the čč from the pdf using Acrobat Reader, I get ˇcˇc instead. However when I don't select times, i.e. compile

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\input glyphtounicode
\pdfgentounicode=1

\begin{document}
\v{c}\char"A3
\end{document}


pdflatex will use the default font SFRM1000 from the cm-super package, and when I copy the čč from the pdf, I get čč (which is what I expect).

Do you have any idea how to fix this or why this happens?

PS: I also filed this at https://www.latex-project.org/cgi-bin/ltxbugs2html?pr=latex/4502 some time ago but I haven't got any response.

• sorry about the lack of response, however the latex bug address isn't the right place as the issue is somewhere between glyphtounicode.tex, pdftex, and the Times font, none of those are under the control of the latex team (although it would have been better if we had replied back in February and said that.) – David Carlisle Dec 12 '17 at 21:21
• Thank you very much for your prompt response, David. I understand that the latex team might not be under control. The surpising thing to me is that it works for one font but not for the other, both fonts being among the most popular TeX fonts. AFAICT, glyphtounicode is correct, since it contains \pdfglyphtounicode{ccaron}{010D} and that's what it should. However I don't know enough about how pdflatex handles fonts to have any idea where the unicode mapping is lost. – usertcl Dec 12 '17 at 21:50
• I guess that glyphtounicode does nothing because the c with caron is realized in ptm by superimposing the accent to the c. – egreg Dec 12 '17 at 22:05
• @DavidCarlisle: the problem is the vf which uses two chars to get the ccaron. But this is actually not necessary: the font has a ccaron. And it is a bit curious that the urw times uses a vf in the adobe folder. Who is responsable for this files? – Ulrike Fischer Dec 12 '17 at 22:23
• @UlrikeFischer yes thanks Frank just said the same in gnats I'm not sure who (if anyone) maintains those vf now – David Carlisle Dec 12 '17 at 22:37