<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 2, 2014 at 11:19 AM, Herbert Voss <span dir="ltr"><<a href="mailto:Herbert.Voss@fu-berlin.de" target="_blank">Herbert.Voss@fu-berlin.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">This is an example from the LuaTeX documentation (pp 166--167)<br>
which works well in the past.<br>
<br>
\directlua {<br>
callback.register('define_font',<br>
function (name,size)<br>
if name == 'cmr10-red' then<br>
f = font.read_tfm('cmr10',size)<br>
<a href="http://f.name" target="_blank">f.name</a> = 'cmr10-red'<br>
f.type = 'virtual'<br>
f.fonts = {{ name = 'cmr10', size = size }}<br>
for i,v in pairs(f.characters) do<br>
if (string.char(i)):find('[tacohanshartmut]') then<br>
v.commands = {{'special','pdf: 1 0 0 rg'},{'char',i},{'special','pdf:<br>
0 g'},}<br>
else<br>
v.commands = {{'char',i}}<br>
end<br>
end<br>
else<br>
f = font.read_tfm(name,size)<br>
end<br>
return f<br>
end)<br>
}<br>
<br>
\font\myfont = cmr10-red at 10pt \myfont This is a line of text \par<br>
\font\myfontx= cmr10 at 10pt \myfontx Here is another line of text<br>
<br>
\bye<br></blockquote><div>No seg fault with luatex experimental</div><div>$ luatex --version</div><div>This is LuaTeX, Version beta-0.79.2 (TeX Live 2015/dev)</div><div><br></div></div><div><br></div>-- <br><div class="gmail_signature">luigi<br></div>
</div></div>