playcanvas / playcanvas/engine
The preloader to handle loading the fonts needed based on the locale
Open
Nobody has claimed this yet.
area: assets
area: localisation
enhancement
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Be able to make the preloader handle loading only the font assets needed for the current locale. At the moment, this is done after the preload process so there is a 'pop' which is much more noticeable with larger font textures such as Chinese.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the preloader and the locale-specific font loading entry points, then compare when font assets are currently requested with the main preload flow. Done means the preloader requests only fonts needed for the current locale and the visible font pop is eliminated, including for larger Chinese font textures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- internationalization, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100