It's an error with the fonts script, but it's not a font error. The error tells you the game is running outside of a nwjs context, and that the itch.io app is probably sandboxing the game inside of a browser. If that's really so, you can try modifying the game files the way it was done for the unofficial "web" port and seeing if it works then.