Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicated, unpacked, locally saved fonts. Reduces addon size from 11 MB to 1 MB #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GustJc
Copy link

@GustJc GustJc commented Jun 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant