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

fix(a11y): Update OpenDyslexic from 0.920 to 2.001 #47928

Merged
merged 2 commits into from
Sep 14, 2024

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Sep 12, 2024

Summary

Normal font OpenDyslexic v0.920 OpenDyslexic v2.001
Bildschirmfoto vom 2024-09-12 16-39-55 Bildschirmfoto vom 2024-09-12 16-39-20 Bildschirmfoto vom 2024-09-12 16-39-38

Checklist

@@ -43,30 +43,22 @@ public function getCSSVariables(): array {
}

public function getCustomCss(): string {
$fontPathWoff = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Regular.woff');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otf is supported by all supported browsers (IE was the last one), so we can drop the others

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside browser support, WOFF is generaly more lightweight too.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But WOFF is not provided by the creator and I don't know what happens with licenses when using a convertor of any kind ¯\_(ツ)_/¯ The files are ~41KB and ~42KB. I really don't care too much about such a little size to risk license issues

Copy link
Member Author

@nickvergessen nickvergessen Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That being said, the old font file was ~250KB and the WOFF was ~120KB there it made a bit more sense

Signed-off-by: Joas Schilling <coding@schilljs.com>
Copy link
Member

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, amazing improvement! FYI @xBelladonna if you want to check it out. :)

Signed-off-by: Joas Schilling <coding@schilljs.com>
@skjnldsv skjnldsv merged commit 6a6910f into master Sep 14, 2024
174 checks passed
@skjnldsv skjnldsv deleted the bugfix/noid/update-opendyslexic branch September 14, 2024 19:19
@skjnldsv
Copy link
Member

I think this should be backported

@skjnldsv
Copy link
Member

/backport to stable30

@skjnldsv
Copy link
Member

/backport to stable29

@skjnldsv
Copy link
Member

/backport to stable28

@nickvergessen
Copy link
Member Author

/backport to stable30

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

Successfully merging this pull request may close these issues.

4 participants