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

MaterialDesign: update fonts #2736

Merged
merged 1 commit into from
Oct 16, 2024
Merged

MaterialDesign: update fonts #2736

merged 1 commit into from
Oct 16, 2024

Conversation

koblack
Copy link
Contributor

@koblack koblack commented Oct 13, 2024

The local fonts used in MaterialDesign contain only the basic character set. This causes problems with displaying characters correctly in some languages e.g. Polish. ruTorrent has been translated into 27 languages. To display dialectal characters correctly in many different languages, we need fonts with the full character set.
Importing fonts allows us to dynamically load the diacritics when needed. Not everyone needs to download all of them. Also, instead of TTF the WOFF2 format with compression makes the fonts smaller.

@stickz
Copy link
Collaborator

stickz commented Oct 13, 2024

I'm okay with this change to support different languages, but can we add all the resources to the ruTorrent project? There are multiple reasons why we load everything locally instead of from a third party source.

@koblack
Copy link
Contributor Author

koblack commented Oct 15, 2024

I modified the pull request and added just more local fonts. In the case of English, the fonts had a total size of 186,523 bytes before the change and 125,328 bytes after the change, so they are now ~33% smaller.

@stickz
Copy link
Collaborator

stickz commented Oct 15, 2024

Thanks looks good. I'll verify it works tomorrow and merge if there are no problems.

125KB is great considering they don't load unless the material design theme is used.

@stickz
Copy link
Collaborator

stickz commented Oct 16, 2024

Thanks!

@stickz stickz merged commit e411ea0 into Novik:master Oct 16, 2024
@koblack koblack deleted the patch-1 branch October 16, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants