Ligatures are not copiable nor searchable in Preview
|Product:||macOS + SDK
PDFkit fails to render ligatures (such as fi and fl) as searchable and copiable characters. This works with OS X up to Yosemite, but somehow is broken in El Capitan and Sierra. A minimal working example is attached, created with XeLaTeX. The ligatures contained in this example cannot be copied nor searched correctly by Preview. The same document works fine with other PDF readers that do not rely on PDFKit.
Steps to Reproduce:
1. open the attached PDF file with Preview
2. select and copy the text included in the PDF
3. paste the copied text into any editor, such as TextEdit
The pasted text should read:
This text should be entirely copiable, but it is not: figure literature ligature final.
The pasted text is:
This text should be entirely copiable, but it is not: gure literature ligature nal.
OS X El Capitan 10.11.6 (15G1217)
Preview 8.1 (877.7)
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!