[luatex] ligatures with luaotfload

Patrick Gundlach patrick at gundla.ch
Sat Oct 8 20:03:18 CEST 2011


Am 08.10.2011 um 18:55 schrieb Javier Múgica de Rivera:

> I have used the luaotfload package for the first time, and worte the
> following code in order to do so:
> 
> %def\otffont#1=#2 at{\font#1={#2: mode=base;tlig;trep} at}
> \def\otffont#1=#2 at{\font#1={#2: mode=node;tlig;trep} at}
> 
> \otffont\tenrm=LMRoman10-Regular at 10pt
> 
> The font appears to be right at first sight but looking closer I see
> that kerning and ligatures are missing. How can that be solved?

you have to explicitly set kern and ligatures:

\def\x{Va Va Va Va Va Va Va fish fluffiest\par}
\input luaotfload.sty
\font\myfont="Linux Libertine O"
\myfont\x
\font\myfont="Linux Libertine O:+liga;"
\myfont\x
\font\myfont="Linux Libertine O:+liga;+kern"
\myfont\x
\bye




Patrick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20111008/7c46e261/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fluffyfish.png
Type: image/png
Size: 32035 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20111008/7c46e261/attachment-0001.png>


More information about the luatex mailing list