This is a followup to Are the Lido STF font installation instructions up-to-date?. I have the Lido STF fonts installed as described there. I also have them installed in OpenType format in C:\Windows\Fonts
. I'm using MiKTeX.
This code compiled with PDFLaTeX gives correct output, while compiling with XeLaTeX makes the first sentence bold italic and the second sentence regular.
\documentclass{article}
\usepackage{iftex}
\ifXeTeX
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Lido STF}
\else
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\renewcommand{\rmdefault}{sld}
\fi
\begin{document}
{\itshape This is supposed to be italic.}
{\bfseries And this bold.}
\end{document}
Additionally Adobe Reader tells me that even when I use XeTeX, the Type1 fonts are used.
What is the problem and how do I fix it permanently?
\setmainfont
to force xetex to use the open type version.