You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Font download and SDF generation is currently lazy, waiting until a TextMesh is first created and sync()-ed. This can cause a noticeable period of blankness when a scene is first rendered.
We should add a function that users can call to preload a font and optionally generate SDF for a set of initial glyphs. It would take a callback that is invoked when the font file is loaded, parsed, and the SDFs are ready. It would then be ready for TextMeshes to use without any noticeable delay.
This allows preloading of font files and optional pregeneration of glyph
SDFs for sets of characters. Closes issue #39. Also added some timings
to the font processor result.
Font download and SDF generation is currently lazy, waiting until a TextMesh is first created and
sync()
-ed. This can cause a noticeable period of blankness when a scene is first rendered.We should add a function that users can call to preload a font and optionally generate SDF for a set of initial glyphs. It would take a callback that is invoked when the font file is loaded, parsed, and the SDFs are ready. It would then be ready for TextMeshes to use without any noticeable delay.
Proposal:
The text was updated successfully, but these errors were encountered: