Remove duplicated, unpacked, locally saved fonts. Reduces addon size from 11 MB to 1 MB #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
90% of the Addon size was because the OpenSans(semi bold) FontFile was being saved locally inside the scene file, 3 times.
This was causing the
controls\input_fields\action_thumbnail\ui_action_thumbnail.tscn
scene to become a 10 MB file.With the opensans font being saved 3 times inside a local UnpackedByteArray for each of the nodes using it.
Made the nodes load from the .ttf file.
Now the scene files is 26 KB size.
The addon size is now reduced from 11 MB to 1 MB