# XeTeX and non-searchable ligatures, font with glyphs in the right Unicode range

Using XeTeX 3.14159265-2.6-0.99996 (TeX Live 2016), I'm trying to compile a document in Adobe Garamond Premier Pro but the ligatures are non-searchable in the output pdf.

Looking around it seems that the problem is common in XeTeX in different fonts, and they suggest that the problem is in the font because the ligatures glyphs are in the private use area (PUA) of the font.

I did the exercise with Adobe Garamond Pro (another font, don't confuse with Garamond Premier) and the ligatures are searchable.

Adobe Garamond Pro ligatures are searchable:

Adobe Garamond Premiere Pro ligatures are non-searchable:

But both fonts have the ligatures in the same Unicode range, "Alphabetic Presentation Forms", which is the right place to put roman ligatures according to the standard.

Adobe Garamond Pro (With searchable ligatures):

Adobe Garamond Premier Pro (With non-searchable ligatures):

What is the status of this problem in XeTeX, is there any solution yet?

Edit:

Two examples:

Below is the code to generate two files (each with a font):

\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{xltxtra}
\defaultfontfeatures{Ligatures=TeX,Numbers=OldStyle}

• FontForge (fontforge.github.io/en-US) is useful for inspecting fonts, and for more than that. In Adobe Garamond Premier Pro Opticals, the glyph is named f_f_i. – Thérèse Mar 25 '17 at 23:41
• We need a minimal example, because I can’t reproduce the problem: with both luatex and xetex, the ligature is searchable. – Thérèse Mar 25 '17 at 23:48