-
Notifications
You must be signed in to change notification settings - Fork 8
wrong fonts picked up by LuaTeX 0.95 + luaotfload 2.7-fix-2 but was ok in TL2015 #356
Comments
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 For LuaLaTeX I did first
|
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:
|
Address issue lualatex#356 The DejaVu Family needs stricter handling of fallback choices so we take the font’s avertised width into consideration. This used to be easier with the old loader since it had some decent heuristics in place for the more or less reliable “fontstyle_name”.
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
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.>···
Yes, it is. This value is the database version. The number is Best, |
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).The text was updated successfully, but these errors were encountered: