• Back to Home

mPrint Hershey font GCODE generator

A lightweight print utility that turns text into GCODE for 3D printers, Plotters and CNC machines.

Why I built this?

I wanted a way to print documents in a completely open source and secure way. I was okay with the speed and resolution trade offs compared to a printer. For my use case, I just wanted absolute control over my hardware. I built this tool to solve a problem for myself. I hope it will be useful to someone in a similar context.

How it works?

The hardware abstraction layer, font and rendering logic are separated. You load a font (the system currently only supports Hershey Fonts, developed in 1967 by Dr. Allen Vincent Hershey. i.e a .jhf file). Pass the font along with the text to the renderer which then passes the coordinates to the hardware abstraction layer. Because they are separated it is fairly trivial to adapt any device that uses coordinates to this utility as a driver.

For the instructions to build and run the code, along with the source code itself, please visit the mPrint GitHub repository.

©Marinum 2026