YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

`font_add_async` for non-hanging font load for language with many glyphs. #2792

Open Ttanasart-pt opened 11 months ago

Ttanasart-pt commented 11 months ago

Is your feature request related to a problem?

When working with external localization or customization where the user can use their own font in runtime. Loading font with font_add will freeze the program depending on the size of the font file. E.g. Chinese font with ten-thousands of glyphs can take seconds to load, thus reducing the responsiveness of the program.

Describe the solution you'd like

Add asynchronous font_add function, where font loading can be done in other threads while the program is running. With this, you can start the program with some dummy font while waiting for the async return.

Describe alternatives you've considered

Additional context

No response

Totobal5 commented 11 months ago

please

gnysek commented 10 months ago

Btw. font adding in game have much more issues. From what I remember, it always loads all gylphs and totally ignore most of settings.