<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 16, 2019 at 6:04 PM Marcel Krüger <<a href="mailto:tex@2krueger.de">tex@2krueger.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
the `indep_value` of `mp->zero_val` is never initialized, but it is used the index written into the<br>
depth / ... fields in the TFM files for glyphs with zero depth/.... This causes malformed TFM files.<br>
<br>
On my system the TFM corruption can be observed when using LuaTeX to build<br>
<br>
\directlua{<br>
local find_file<br>
do<br>
  local kpse = kpse.new('lualatex', 'mpost')<br>
  find_file = function(name, mode, type)<br>
    return mode == 'w' and name or kpse:find_file(name, type) or (type == 'mp' and kpse:find_file(name, 'mf'))<br>
  end<br>
end<br>
local mp = mplib.new{<br>
  job_name = 'cmr10',<br>
  find_file = find_file,<br>
  math_mode = 'scaled',<br>
}<br>
local result = mp:execute'input mfplain;mode:=localfont;input cmr10.mf;'<br>
print(result.term)<br>
}<br>
\bye<br>
<br>
Using standalone MetaPost I could not trigger this and the problem does not appear with the<br>
LuaTeX binary from TeXLive binary from pretest, but custom built luatex versions from both the experimental<br>
and the trunk branch showed the problem. The luatex binary available through the contextgarden seems to be affected too.<br>
<br>
The problem can be fixed by adding<br>
<br>
set_indep_value (mp->zero_val, 0);<br>
<br>
below<br>
<br>
@ @<Initialize table entries@>=<br>
mp->zero_val = mp_get_value_node (mp);<br>
set_value_number (mp->zero_val, zero_t);<br>
<br>
in mp.w (Around line 33774)<br>
<br>
<br>
Best regards<br>
Marcel Krüger<br>
<br></blockquote><div><br></div><div>sorry for delay, I will it asap.</div><div> </div></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>