[Tex/LaTex] How to unset default Ligatures=TeX for main font? (TexLive2015)

fontspecligaturesluatex

As of TexLive2015 (as opposed to TexLive2013) fontspec predefines Ligatures=TeX. This results in double quotes being replaced by curly quotes. How can I disable this behavior?

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}

\begin{document}
force "x y Fx Fy"
\end{document}

curly quotes not wanted

In comment to the question handling of `–` in minted egreg mentioned using \defaultfontfeatures{} before defining the font, but in the case above it has no effect.
There is the selnolig package (Any suggestions/requests for features for a new package that allows disabling ligatures for (pre)selected words?), but I haven't found a command to disable TeX-"ligatures".

The work-around I've found was to edit the file '/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.cfg', deleting the line {Ligatures=TeX}. I'd prefer a solution that avoids touching the installation.

Is there any \defaultfontfeatures{Ligatures=NoTeX}?

Best Answer

Section 6.1 of the manual tells how to set the features for specified families declared with \setmainfont or \setsansfont:

\documentclass{article}
\usepackage{fontspec}

\defaultfontfeatures[\rmfamily,\sffamily,\ttfamily]{}
\setmainfont{Linux Libertine O}

\begin{document}

force "x y Fx Fy"

-- ---

`` ''
\end{document}

enter image description here

Related Question