# Can PDF search find words with ligatures in XeLaTeX-documents?

Is there some way allow PDF search to find words with ligatures? I use XeLaTeX.

\documentclass{book}
\begin{document}
Prefix.
\end{document}


In the resulting pdf file, searching for the word "Prefix" fails.

-
Note that this is searchable e.g. with SumatraPDF on Win7. I'm assuming you used Acrobat Reader, with which I can reproduce your problem. Good MWE! –  doncherry Aug 19 '12 at 21:01

Add \usepackage{fontspec}. This actually loads the package fontenc, which would solve your problem for pdfLaTeX.
Your solution works because with fontspec you are using a different font which uses correct glyph names and so allow the pdf reader to "understand" the ligature. \usepackage[T1]{fontenc} (which switches from the cm fonts to the ec fonts), \usepackage{lmodern} or \usepackage{times} work too. –  Ulrike Fischer Aug 20 '12 at 8:37