I have a font named Berling containing fi and fl ligatures on glyph 109 and 110. How can I activate these with lualatex? For the moment I am trying:
\documentclass[a4paper]{memoir}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\begin{document}
\setmainfont[ItalicFont={BerlIt}, Ligatures={Required}]{Berling}
Fi fi Fl fl \textit{Foo Fii fi}
\end{document}
But I get:
*************************************************
* fontspec warning: "icu-feature-not-exist-in-font"
*
* OpenType feature 'Ligatures=Required' (+rlig) not available for font
* 'Berling' with script 'Latin' and language 'Default'.
*************************************************

EDIT: I have now also tried (and both with and without Script=Default)
\documentclass[a4paper]{memoir}
\usepackage{fontspec}
\begin{document}
\setmainfont[ItalicFont={BerlIt}, Ligatures={Common, TeX}, Script=Default]{Berling}
Fi fi Fl fl \textit{Foo Fii fi}
\end{document}

Script=Default, and see if it works. – Khaled Hosny Feb 17 at 17:13inputencwith lualatex/xelatex. These 2 already assume you use UTF-8 in your source. – ArTourter Feb 17 at 17:39Commonligature group rather than in theRequiredligature group. You may want to try the optionLigatures=Commonor, better still,Ligatures={Common, TeX}when executing the\setmainfontinstruction. – Mico Feb 17 at 18:45