When I use LuaTeX to compile the document (see below) the search function works as expected even with Adobe Text Pro and ligatures. So I'm pretty confident it's not a problem with the font.
I would just use LuaLaTex but it's much, much slower for me. For now I am doing my composition and previewing with XeTeX and then producing my final output with LuaTeX but I'm wondering if I'm just missing the right settings for XeTex.
Example document:
Code: Select all
\documentclass{book}
\usepackage{fontspec}
\usepackage{libertineotf}
%\setmainfont[Ligatures=TeX]{Adobe Text Pro}
\begin{document}
The quote is: ``Play in the field; riffle the deck.''
\end{document}
Then compile the above document with LuaTeX and everything is properly searchable whether Libertine or Adobe Text Pro is enabled. I take it that the Th ligature issue with Libertine is due to lack of a precomposed Th character in Unicode, but then how does LuaTex manage it? Does XeTeX not support the alternate text feature of PDFs?
I'm using TeXStudio 2.5 on both Windows (with latest MiKTeX) and Mac OS X (MacTex-2012).