<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 14, 2022 at 11:11 PM Karl Berry <<a href="mailto:karl@freefriends.org">karl@freefriends.org</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 Laurence,<br>
<br>
In MP using one of the -numbersystem options, e.g., "double", [helps]<br>
...<br>
Would it be possible to implement this in MF<br>
<br>
It's surely possible, theoretically.<br>
<br>
and if so, could anyone estimate how hard this is likely to be?<br>
<br>
Hard. I don't know of anyone who would work on this. Not me.<br>
<br>
Luigi, you didn't already put number systems into mflua, did you?<br>
<br></blockquote><div><br></div><div>hm not exactly.. there are some callbacks that can run Lua code, plus a new primitive runscript that executes a lua script</div><div>and return a string</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
"Some editing would be required in order to merge them into a<br>
downloadable Type 3 PostScript font" (with respect to CM).<br>
<br>
Making a Type 1 PostScript font (with outlines) from of the MetaPost<br>
output is done by MetaType1. That's how Latin Modern and the TeX Gyre<br>
fonts are created. There's not a lot of documentation, but here's the<br>
package page:<br>
<a href="https://www.ctan.org/tex-archive/fonts/utilities/metatype1" rel="noreferrer" target="_blank">https://www.ctan.org/tex-archive/fonts/utilities/metatype1</a><br>
There are a couple articles in TUGboat about it, too. --good luck, karl.<br>
</blockquote></div><br clear="all"><div>mflua has the same goal, and the latest version also embeds libpotrace -- so parsing the font in gf format it's possible to have </div><div>an outline of the glyph, of course these outlines are not related with the curves used in the mf source. </div><div>But mflua can collect the outlines used in the mf source and save them in a file to be elaborated later.</div><div>As mode I use otcffpt</div><div>mode_def otcffpt = <br> mode_param (pixels_per_inch,3627+3600); <br> mode_param (blacker, 0);<br> mode_param (fillin, 0);<br> mode_param (o_correction, 1);<br> mode_common_setup_;<br>enddef;<br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>