<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">consider the following MP program, which is trying to print the Greek alphabet in the default font using the default TeX encoding, which puts Gamma at position zero<br class=""><br class=""><font face="Courier New" class="">prologues := 3;<br class="">outputtemplate := "%j%c.eps";<br class=""><br class="">beginfig(1);<br class="">string AB;<br class=""><br class="">AB = ("AB" & char 0 & char 1 & "EZH" & char 2 & "IK" <br class="">          & char 3 & "MNO" & char 4 & char 5 & "P"<br class="">          & char 6 & "T"   & char 7 & char 8 & "X"<br class="">          & char 9 & char 10);<br class=""><br class="">draw AB infont "cmmi10" shifted 10 up;<br class="">draw AB infont "eurm10" shifted 10 down;<br class="">draw bbox currentpicture;<br class="">endfig;<br class="">end.</font><br class=""><br class=""><br class="">if I run this through `mpost`  (MetaPost 2.00 (TeX Live 2021) (kpathsea version 6.3.3)) I get two lines with the expected 24 Greek characters in each, with a box around them.<br class=""><br class="">But if I change the program to wrap it up with luamplib like this:<br class=""><br class=""><font face="Courier New" class="">\documentclass{standalone}<br class="">\usepackage{luamplib}<br class="">\begin{document}<br class="">\begin{mplibcode}<br class="">beginfig(1);<br class="">string AB;<br class="">AB = ("AB" & char 0 & char 1 & "EZH" & char 2 & "IK" <br class="">          & char 3 & "MNO" & char 4 & char 5 & "P"<br class="">          & char 6 & "T"   & char 7 & char 8 & "X"<br class="">          & char 9 & char 10);<br class="">draw AB infont "cmmi10" shifted 10 up;<br class="">draw AB infont "eurm10" shifted 10 down;<br class="">draw bbox currentpicture;<br class="">endfig;<br class="">\end{mplibcode}<br class="">\end{document}</font><br class=""><br class="">and run it through `lualatex` (This is LuaHBTeX, Version 1.13.0 (TeX Live 2021) then all I get are the first two characters in each string.  In other words it stops at char 0 (Gamma).<div class="">Oddly the bbox is still large enough for the whole string…</div><div class=""><br class=""></div><div class="">any thoughts?</div><div class=""><br class=""></div><div class="">Toby</div></body></html>