[tex-k] METAFONT/MetaPost: Display-size fonts and limit on numerical values

luigi scarso luigi.scarso at gmail.com
Fri Apr 15 23:02:39 CEST 2022


On Thu, Apr 14, 2022 at 11:11 PM Karl Berry <karl at freefriends.org> wrote:

> Hi Laurence,
>
>     In MP using one of the -numbersystem options, e.g., "double", [helps]
>     ...
>     Would it be possible to implement this in MF
>
> It's surely possible, theoretically.
>
>     and if so, could anyone estimate how hard this is likely to be?
>
> Hard. I don't know of anyone who would work on this. Not me.
>
> Luigi, you didn't already put number systems into mflua, did you?
>
>
hm not exactly..  there are some callbacks that can run Lua code, plus a
new primitive runscript that executes a lua script
and return a string



>     "Some editing would be required in order to merge them into a
>     downloadable Type 3 PostScript font" (with respect to CM).
>
> Making a Type 1 PostScript font (with outlines) from of the MetaPost
> output is done by MetaType1. That's how Latin Modern and the TeX Gyre
> fonts are created. There's not a lot of documentation, but here's the
> package page:
> https://www.ctan.org/tex-archive/fonts/utilities/metatype1
> There are a couple articles in TUGboat about it, too. --good luck, karl.
>

mflua has the same goal, and the latest version also embeds libpotrace --
so  parsing the  font in gf format it's possible to have
an outline of the glyph, of course these outlines are not related with the
curves used in the mf source.
But mflua can collect the outlines used in the mf source and save them in a
file to be elaborated later.
As mode I use otcffpt
mode_def otcffpt =
  mode_param (pixels_per_inch,3627+3600);
  mode_param (blacker, 0);
  mode_param (fillin, 0);
  mode_param (o_correction, 1);
  mode_common_setup_;
enddef;

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-k/attachments/20220415/b727bdad/attachment.html>


More information about the tex-k mailing list.