% !TEX TS-program = lualatex
% addliga.sty
% Version 1.0
% Adds ligatures to TrueType fonts in LuaLaTeX
% Written 2019 by Daniel Benjamin Miller <dbmiller@dbmiller.org>
% Contributed to the Public Domain
% No Rights Reserved
\ProvidesPackage{addliga}[2019/04/30 addliga 1.0]
\directlua{
  fonts.handlers.otf.addfeature{
    name = "liga",
    type = "ligature",
    data = {
      ['ff']={"f","f"},
      ['fi']={"f","i"},
      ['ffi']={"f","f","i"},
      ['fl']={"f","l"},
      ['ffl']={"f","f","l"},
    },
  }
}
\endinput