diff options
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luaotfload/luaotfload-main.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luaotfload/luaotfload-main.tex | 58 |
1 files changed, 53 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-main.tex b/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-main.tex index e10532efb73..f4a9bf06359 100644 --- a/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-main.tex +++ b/Master/texmf-dist/doc/luatex/luaotfload/luaotfload-main.tex @@ -32,7 +32,7 @@ \beginfrontmatter \setdocumenttitle {The \identifier{luaotfload} package} - \setdocumentdate {2019-01-28 v2.95} + \setdocumentdate {2019-02-14 v2.96} \setdocumentauthor {Elie Roux · Khaled Hosny · Philipp Gesang · Ulrike Fischer\\ Home: \hyperlink {https://github.com/lualatex/luaotfload}\\ New Home: \hyperlink {https://github.com/u-fischer/luaotfload}\\ @@ -56,6 +56,18 @@ \pdfbookmark[1]{\contentsname}{table} \typesetcontent +\beginsection {New in version 2.96 (by Ulrike Fischer)} +\begin{itemize} +\item In\marginpar{\mbox{}\hfill \textbf{Incompatible change!}} +version 2.95 letterspacing was broken due to a change in the fontloader (issue 38). This has been repaired. At the same time a number of oddities and bugs in the letterspacing has been corrected. This can change existing documents. See page~\pageref{p:letterspace} for more information. + +\item A problem with the detection of bold fonts has been corrected (issue 41, pull request 42). + +\end{itemize} +\endsection + + + \beginsection {New in version 2.95 (by Ulrike Fischer)} \begin{itemize} \item @@ -748,7 +760,7 @@ obviously, \inlinecode{random}. \endlisting \endaltitem - \beginaltitem {kernfactor \& letterspace} + \beginaltitem {kernfactor \& letterspace}\label{p:letterspace} Define a font with letterspacing (tracking) enabled. % In \identifier{luaotfload}, letterspacing is implemented by @@ -771,8 +783,41 @@ obviously, \inlinecode{random}. results in $4.2$ pt of additional kerning applied to each pair of glyphs. % - Ligatures are split into their component glyphs unless - explicitly ignored (see below). + + Spaces\marginpar{\mbox{}\hfill NEW in v2.96!} between words are now stretched too. This is consistent with the \XETEX behaviour (and the amount of stretching should be similar). This + naturally changes the output of a document. In case you want the old behaviour back use + \beginlisting + \directlua{luaotfload.letterspace.keepwordspacing = true} + \endlisting + + The difference between both options is obvious: + + \begingroup + \fontspec{IwonaMedium-Regular.otf}[LetterSpace=60] + New: hello world + + \directlua{luaotfload.letterspace.keepwordspacing = true} + + Old: hello world + + \directlua{luaotfload.letterspace.keepwordspacing = false} + \endgroup + + + Ligatures\marginpar{\mbox{}\hfill NEW in v2.96!} are no longer split into their component glyphs. + This change too make the \identifier{luaotfload} more compatible with \XETEX. It also makes it much easier to activate or deactivate ligature sets in letterspaced fonts. + If you want to split ligatures, you should deactivate as you would do it with a not-letterspaced font, e.g. with the fontspec \identifier{Ligatures} option, or the low-level \identifier{-liga} and similar. + + + {\font \test = "file:Iwona-Regular.otf:mode=base;+liga;+tlig;letterspace=12.5" + \test With standard ligatures: fi -- ff\par + + \font \test = "file:Iwona-Regular.otf:mode=base;-liga;+tlig;letterspace=12.5" + \test Only with tlig: fi -- ff \par + + \font \test = "file:Iwona-Regular.otf:mode=base;-liga;letterspace=12.5" + \test No ligatures: fi -- ff \par + } For compatibility with \XETEX an alternative \identifier{letterspace} option is supplied that interprets the @@ -787,7 +832,10 @@ obviously, \inlinecode{random}. \font \iwonakernedB = "file:Iwona-Regular.otf:letterspace=12.5" \endlisting - Specific pairs of letters and ligatures may be exempt from + The \identifier{microtype} package uses a special implementation of letterspacing, and the commands \inlinecode{\lsstyle} and \inlinecode{\textls} are not affected by these changes. + + Setting the ligatures with the font options is the recommended way, to activate or deactivate them. In case of special requirements + specific pairs of letters and ligatures may be exempt from letterspacing by defining the \LUA functions \luaident{keeptogether} and \luaident{keepligature}, respectively, inside the namespace \inlinecode {luaotfload.letterspace}. |