I have available to me Bitstream's Baskerville font. It is a truetype font and my font directory is as follows:
$ ls /usr/share/fonts/truetype/BaskervilleBT BaskervilleBT-BoldItalic.ttf BaskervilleBT-Bold.ttf BaskervilleBT-Italic.ttf BaskervilleBT-Regular.ttf
When using LibreOffice Writer, I am able to select the ligatures. See the attached PDF.
I set up the fontspec as follows:
\defaultfontfeatures[BaskervilleBT]{ Path = /usr/share/fonts/truetype/BaskervilleBT/, Extension = .ttf, UprightFont = *-Regular, ItalicFont = *-Italic, BoldFont = *-Bold, BoldItalicFont = *-BoldItalic }
Here is my test file:
% !TEX xelatex \documentclass[12pt]{article} \usepackage{mathspec} \setmainfont{BaskervilleBT} \begin{document} 34 first flood effect \end{document}
I have attached the resulting PDF. The ligatures fi and fl are not formed. (There is no ff ligature available.)
I have setup the fontspec and test files with other fonts and the ligatures do form correctly, so the issue does not appear to be my fontspec or test file. The font itself has the ligatures as demonstrated by LibreOffice.
How do I get XeLaTeX to form the ligatures with Bitstream Baskerville?
Thanks.