I am just learning LATEX. Have been wanting to for years, doing quite well (at 60) and many years of programming are making it a joy!

I am using fontspec to load some fonts directly from a subdirectory of the tex documents directory. This works as follows:

\title{A Test of Zapinfo}


\fontspec[Path = fonts/zapfino/,

Ramonskovitch wanted to be a duffle

\section{The First Section}

This works as expected. However, I can't work out though, how to get Ligatures when the ligatures are in a separate font file (in the font directory) The same question will apply to ornaments when I get to those

All help appreciated Dan Raymond


this is only a partial answer, as it's a bit hard to work on your question without having the fonts available, particularly with a font as idiosyncratic as Zapfino.

You're saying the ligatures are in a separate font file. As far as I can tell, ZapfinoExtraLT-One.otf does include ligatures, as do the other flavours that Zapfino comes in:

enter image description here

...and there's no reason why they shouldn't turn up in the pdf you're creating. If, however, you want to switch between the different flavours of Zapfino -- using flavour ›One‹ as your main font, but take the ligatures from flavour ›Two‹ --, you could define different font families using \newfontfamily, and switch between them whenever you want. This may not be the fully automated solution you're looking for (»use font x, but take ligatures from font y«), but maybe it can be turned into one (not by me, though).


\setmainfont{TeX Gyre Termes}
\newfontfamily\zapftwo{TeX Gyre Cursor}
\newcommand\textzapftwo[1]{{\zapftwo #1}}


di\textzapftwo{ff}erent  \textzapftwo{fi}le

enter image description here

PS: as for the ornaments, this might be helpful.

PPS: at the boundaries between two flavours, as in different, kerning might become an issue. I suppose pair kerning information is lost when switching fonts in the middle of a word, so without corrections the result might look awkward.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.