When I run lualatex on the following MWE, open the resulting PDF in either Evince or Okular, and search for foo, I get zero matches. If I instead search for f oo (note the space between the f and oo) then a match is found. Searching for bar works fine. If I select "Foo" in the PDF, copy it, and paste it into a plain text document, I get F oo (note the space).
\documentclass[twoside]{article} % Works if twoside is removed.\usepackage[tracking=true]{microtype} % Works if commented out or tracking=true removed.\usepackage{geometry} % Works if commented out.\usepackage{titlesec}\titleformat{\section}{\normalfont\scshape}{}{0pt}{} % Works if commented out or \scshape removed.\titlespacing*{\section}{ % Works if commented out. -1110630sp % Works if -1110629sp or greater.}{*1.5}{*2}\begin{document}%\section{Foo Bar}%\end{document}If I tweak the above MWE as described in the comments, then searching for foo works (as does copy+paste).
Can anyone explain what is going wrong?