The following document:
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
Hello world
\end{document}
result in the following weird selection behavior in Sumatra PDF v3.2:
(the d is selected, but the bounding box is wrong)
Which when copied gives the text He l l o w or l d
.
If I remove \usepackage{lmodern}
and \usepackage[T1]{fontenc}
, everything seems to work fine.
What's going on here?
pdftex
,xelatex
,lualatex
but also withlatex-dvips-ps2pdf
but I don't experienced your problem viewing the resulting PDF in SumatraPDF.