Menu

#239 Several ligatures produce output that is not copyable

open
5
2012-10-06
2012-10-06
doncherry
No

% 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.

Discussion

  • doncherry

    doncherry - 2012-10-06
    • summary: Several ligatures are produce output that is not copyable --> Several ligatures produce output that is not copyable
     
  • Philippe Verdy

    Philippe Verdy - 2013-02-02

    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.

     

Log in to post a comment.