Hello, this is the pen text engine that I used for my new game, BOUNCE. Feel free to reuse or remix it!
This is a very compact and lag-free design of a text engine, and it works almost without delay. Here is how it works: Each symbol is fitted into a 5x7 grid of pixels, and then the picture is saved into a list using 35 digits of binary coding (1 is filled, 0 is empty). When you type in a number/letter/symbol, it finds the correct item on the saving list of binary using the variable "Encode Save" then, it calculates the length of pixels on the message that you typed and finds the correct place to start drawing so that the message is in the middle, and fills in pixels according to the retrieved binary code.