My aim is to cache a font once it was loaded once and re-use over user sessions in the browser.
I have a converted unicode font which is about 1.5 MB in size instead of the default fonts which are about 60 KB.
Just serialized a threejs font to JSON and deserialized it back for use in my scene.
Seems to work without any problems.
Is that something you would discourage?
Maybe you should consider to use an alternative to JSON like msgpack to achieve smaller file sizes and faster processing.
I’m not sure there is much of a difference if you have JSON files with 1.5 MB size. However, if JSON gets larger, the resulting processing times can be problematic. In these use cases, working with a binary format is more efficient.
Using a binary format instead of JSON was also suggested in context of the three.js editor where the auto-save feature has a bad performance for really complex scenes, see: