Unfortunately the most important thing here is missing - the whole explanation, like how did we get there, what those fonts can do and so on..
Fair warning though: this was designed and implemented by an LLM, as an experiment to see if it was possible. I only guided it to a working solution by pointing out problems, and never dug deeply into its inner workings.