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
I'm doing some spring cleaning on my game and in doing so, I've managed to shrink most of the size.
However, I've noticed a large part of the filesize is actually from fonts in this repo.
I thought removing them in the pipeline might work but alas no. It tries to load the fonts regardless of whether they are used or not
Is there anything that can be done to get around this?
I tried removing them and I've also tried truncating them to 0 bytes but it still throws up errors
The text was updated successfully, but these errors were encountered:
Agreed that I've had to hack around this by modifying the library for my game packaging. Some kind of switch to avoid attempting to find and load default fonts would be a nice to have when the user has made sure they've provided all the fonts that are needed themselves, so that the included TTFs could be deleted before packaging. I'll review my hacks but I'm not sure they'd be helpful in making a worthy suggested change.
Yeah. Also if the goal with these fonts is to make sure we have all glyphs, there's a much lighter alternative.
There's the GNU Unifont which is roughly 5mb and is what I use to accommodate Chinese/Russian etc... https://unifoundry.com/unifont/index.html
Hello!
I'm doing some spring cleaning on my game and in doing so, I've managed to shrink most of the size.
However, I've noticed a large part of the filesize is actually from fonts in this repo.
I thought removing them in the pipeline might work but alas no. It tries to load the fonts regardless of whether they are used or not
Is there anything that can be done to get around this?
I tried removing them and I've also tried truncating them to 0 bytes but it still throws up errors
The text was updated successfully, but these errors were encountered: