Take the 2-minute tour ×  I need some C code to generate Bezier
curves from Metafont source code. Ideally, I'd like to have a
C/C++ function with the following specifications:  Input: an
array of text strings (the lines in the MetaFont program)
Output: an array of Bezier curves representing the centerlines
of the "pen" strokes (plus some information about the pen used
for each stroke).  So, internally, this code would parse the
MetFont source, solve little systems of linear equations, and
calculate the control points of the Bezier curves.  Code like
this must exist in both MetaFont and MetaPost, but I'm having
trouble finding it. Which files/functions should I look at first
? Thanks.  Adding edits here, as instructed: Remaining questions
are:  (1) Are mplib.c and mplib.h the best starting points ?
(2) If they are, where can I find them ?  (3) If not, where else
should I look ?  I think I have the answers, but I couldn't
figure out how to answer my own question:  I think mplib.c and
mplib.h probably are the