I have a font (Dolly) with f_i and f_l ligatures, which requires a feature file to make them work. Everything works fine using the following:
# dolly.fea
languagesystem DFLT dflt;
languagesystem latn dflt;
feature liga {
sub f l by f_l ;
sub f i by f_i ;
} liga ;
in the same directory as my .tex file
\documentclass[12pt]{article}
\usepackage{microtype}
\usepackage{fontspec}
\newfontfeature{Microtype}{protrusion=default;expansion=default;}
\setmainfont[
FeatureFile = {dolly.fea},
Microtype,
Renderer=Basic,
Ligatures={TeX},
ItalicFont = {Dolly Italic},
]{Dolly Roman}
....
But the problem is that I don't want to put this in the same directory as my .tex file each time. The fontspec manual suggests that using a full path should work, but when I do this:
....
\setmainfont[
FeatureFile = {/path/to/dolly.fea},
Microtype,
Renderer=Basic,
Ligatures={TeX},
ItalicFont = {Dolly Italic},
]{Dolly Roman}
....
I get an error
! LuaTeX error ...2/texmf-dist/tex/luatex/luaotfload/otfl-font-otf.lua:228: bad
argument #1 to 'attributes' (string expected, got boolean).
<to be read again>
relax
l.16 ]{Dolly Roman}
It also can't seem to find it when I place it in $TEXMF/fonts/fea/ or in my $TEXINPUTS dir. It just proceeds to compile the file without the ligatures. (Note that kpsewhich sees it).
So, my question: is there any way to set up a features file that I can use system-wide, or at least without copying it to every directory I want to run lualatex in?