Several ligatures produce output that is not copyable
We provide pleasant OS font-families for documents and screen.
Brought to you by:
philthelion
% compile with xelatex
\documentclass{article}
\usepackage{fontspec}
\usepackage{libertineotf}
\begin{document}\addfontfeatures{RawFeature=+liga;+dlig;+hlig}
fb fh ffh fj ffj fk ffk ft fft tt Qu Th ch ck ct
\end{document}
This code produces the proper output in a pdf viewer, but copying and pasting the line somewhere else results in this line:
The same problem appears when you try to search the PDF for any of the ligatures: They cannot be found.
All other ligatures that I tested seem to work in this respect.
the is of the substituted glyphs for the ligatures do not obey to the naming rules. When a PFG is created, and fonts not embedded directly, source characters are replaced by glyphs, but if these glyphs do not obey Afobe naming rules (or don't have Adobe names), the PDF will contain anonymius glyphs IDs, that can no longer be decoded back to a sequence of encoded characters.
In other words, this is a problem in the Font glyph mappings for Postscript and PDF, even if these glyhps are correctly rendered.