Closed jfbu closed 6 years ago
With LuaTeX 0.95 + luaotfload 2.7-fix-2, as in TL2016 pretest as of 2016/05/12:
With XeLaTeX:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{DejaVuSerif}
\setsansfont{DejaVuSans}
\setmonofont{DejaVuSansMono}
\begin{document}
\count255 1
\def\y{\the\count255 \global\advance\count255 by 1 }
\def\x{\rule{1cm}{1pt}%
\raisebox{3mm}{\makebox[0pt]\y}%
\makebox[0pt]{\rule{1pt}{2mm}}%
}%
\x\x\x\x\x\x\x\x\x
\rmfamily abcdefghijklmnopqrstuvwxyz0123456789
\sffamily abcdefghijklmnopqrstuvwxyz0123456789
\ttfamily abcdefghijklmnopqrstuvwxyz0123456789
\end{document}
For XeLaTeX compilation I used \setmainfont[ExternalLocation]{DejaVuSerif}
etc, because I am on mac os x, and I removed to be extra sure the DejaVu fonts from my ~/Library/Fonts
to force use of the files of the TeXLive tree.
For LuaLaTeX I did first
$ luaotfload-tool --cache=erase
$ luaotfload-tool -u -f -vvv
Plain LuaTeX example:
\input luaotfload.sty
\font\foo="DejaVuSerif:mode=node;script=latn;language=DFLT;+tlig;"
\foo
\count255 1
\def\y{\the\count255 \global\advance\count255 by 1 }
\def\x{\noindent\vbox{\hrule width 1cm height 1pt }%
\hbox to 0pt {\raise 3mm \hbox to 0pt{\hss\y\hss}}%
\hbox to 0pt {\hss\vbox{\hrule width 1pt height 2mm}\hss}%
}%
\x\x\x\x\x\x\x\x\x
\noindent abcdefghijklmnopqrstuvwxyz0123456789
\nopagenumbers
\bye
% Local Variables:
% TeX-engine: luatex
% End:
with context:
\starttext
\setuppagenumbering[state=stop]
\font\foo="DejaVuSerif:mode=node;script=latn;language=DFLT;+tlig;"
\foo
\count255 1
\def\y{\the\count255 \global\advance\count255 by 1 }
\def\x{\noindent\vbox{\hrule width 1cm height 1pt }%
\hbox to 0pt {\raise 3mm \hbox to 0pt{\hss\y\hss}}%
\hbox to 0pt {\hss\vbox{\hrule width 1pt height 2mm}\hss}%
}%
\x\x\x\x\x\x\x\x\x
abcdefghijklmnopqrstuvwxyz0123456789
\stoptext
produces
Hi, do you think the commit would solve the issues raised at:
? (I have not tested the commit as I can't experiment now)
Please test the new release, it should appear on CTAN any day.
I have tested now the new release (with LaTeX): problem fixed, thanks !
side question: when the new luaotfload did first the database rebuilt there was a message (I didn't keep a copy) like "expected 2.900; got 2.700". I was surprised by the "2.900", expected something like "2.730". I see from luatotfload-tool --version
output at bottom
Index: version="2.9" created="2016-06-18 08:53:44" modified="2016-06-18 08:53:44"
thus I guess it is all quite intentional ;-) (of course ...)
also with plain LuaTeX, no more issue here.
···<date: 2016-06-18, Saturday>···<from: Jean-François B.>···
I have tested now the new release (with LaTeX): problem fixed, thanks !
side question: when the new luaotfload did first the database rebuilt there was a message (I didn't keep a copy) like "expected 2.900; got 2.700". I was surprised by the "2.900", expected something like "2.730". I see from
luatotfload-tool --version
output at bottomIndex: version="2.9" created="2016-06-18 08:53:44" modified="2016-06-18 08:53:44"
thus I guess it is all quite intentional ;-) (of course ...)
Yes, it is. This value is the database version. The number is incremented whenever a change affects the layout of the font index or how it is assembled. There is no relation to the Luaotfload version number and besides providing a monotonic counter that value has no meaning.
Best, Philipp
Sound as if it has been resolved ...
Consider this LaTeX file:
With TL2016 pretest (manually updated to use luaotfload 2.7-fix-2 which is on CTAN but not yet in the pretest, but it was the same with fix-1) I get (long line left as is):
which wrongly uses Condensed version, but with TL2015 I get (hard wraps there in original):
The ouput does change, and checking in Adobe Reader, the fonts are confirmed.
The font repertory has not changed it is:
and same ls for 2015 version.
I have also DejaVu installed in my
~/Library/Fonts
(perhaps I installed it not knowing it came with TeXLive, or that was some years ago and it was not yet in TeXLive, but anyway I don't think this interferes here).