[luatex] Ligatures

Hans Hagen j.hagen at xs4all.nl
Fri Mar 19 10:48:28 CET 2021


On 3/19/2021 10:21 AM, Philip Taylor wrote:
> I asked a question on the XeTeX list concerning support for coloured 
> fonts yesterday, and it was suggested that LuaTeX might provide a 
> solution to my problem.  Indeed it does, but it introduces a new one — 
> while LuaTeX appears perfectly happy to form (for example) an "fi" 
> ligature from the separate letters "f" & "i" in the font Minion Pro, it 
> does not do the same with the font Adobe Caslon Pro, whether or not 
> "+liga"and/or "+dlig" is specified, nor with the font Garamond and 
> probably others.  The following is my test-bed, which produces correct 
> ligatures using XeTeX but not using LuaTeX or LuaHbTeX.  Can anyone 
> advise, please ?  UNIV: TeX Live 2021 (pre-test), Windows 7 64-bit.
> 
> /Philip Taylor
> /--------
> \ifcsname directlua\endcsname \input luaotfload.sty \fi
> 
> 
> \font \bodyfont = "Minion Pro"
> 
> \centerline {\bodyfont Minion is a fit subject}
> 
> \font \bodyfont = "Adobe Caslon Pro"
> 
> \centerline {\bodyfont Caslon is a fit subject}
> 
> \font \bodyfont = "Adobe Caslon Pro:+liga;+dlig"
> 
> \centerline {\bodyfont Caslon is a fit subject}

it looks ok here; the font no dflt script so you need to activate the 
latn script for ligatures to work

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the luatex mailing list.