A related but different approach I liked was taken by Amy Goodchild, who is an artist that uses code for her creations.
She encoded her handwriting as paths in JS (rather than as a font): https://www.amygoodchild.com/blog/cursive-handwriting-in-jav...
This is really cool, educative and very well written.