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. – خالد حسني Feb 17 '13 at 17:13inputencwith lualatex/xelatex. These 2 already assume you use UTF-8 in your source. – ArTourter Feb 17 '13 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 '13 at 18:45Font Bookon my Mac and they are at location 109 and 110. @egreg: I got the font from my University. It has copyright: "Copyright (c) 1991 Adobe Systems Incorporated. All Rights Reserved.Berling is a trademark of Verbum AB, Stockholm." Gonna update the example with my latest attempt based on your suggestions... – jonalv Feb 18 '13 at 09:16