Skip to content

Commit

Permalink
fix(a11y): Update OpenDyslexic from 0.920 to 2.001
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Sep 12, 2024
1 parent 2480567 commit c8cdb74
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 11 deletions.
Binary file modified apps/theming/fonts/OpenDyslexic-Bold.otf
Binary file not shown.
Binary file removed apps/theming/fonts/OpenDyslexic-Bold.ttf
Binary file not shown.
Binary file removed apps/theming/fonts/OpenDyslexic-Bold.woff
Binary file not shown.
Binary file modified apps/theming/fonts/OpenDyslexic-Regular.otf
Binary file not shown.
Binary file removed apps/theming/fonts/OpenDyslexic-Regular.ttf
Binary file not shown.
Binary file removed apps/theming/fonts/OpenDyslexic-Regular.woff
Binary file not shown.
14 changes: 3 additions & 11 deletions apps/theming/lib/Themes/DyslexiaFont.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,22 @@ public function getCSSVariables(): array {
}

public function getCustomCss(): string {
$fontPathWoff = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Regular.woff');
$fontPathOtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Regular.otf');
$fontPathTtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Regular.ttf');
$boldFontPathWoff = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Bold.woff');
$boldFontPathOtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Bold.otf');
$boldFontPathTtf = $this->urlGenerator->linkTo('theming', 'fonts/OpenDyslexic-Bold.ttf');

return "
@font-face {
font-family: 'OpenDyslexic';
font-style: normal;
font-weight: 400;
src: url('$fontPathWoff') format('woff'),
url('$fontPathOtf') format('opentype'),
url('$fontPathTtf') format('truetype');
src: url('$fontPathOtf') format('opentype');
}
@font-face {
font-family: 'OpenDyslexic';
font-style: normal;
font-weight: 700;
src: url('$boldFontPathWoff') format('woff'),
url('$boldFontPathOtf') format('opentype'),
url('$boldFontPathTtf') format('truetype');
src: url('$boldFontPathOtf') format('opentype');
}
";
}
Expand Down

0 comments on commit c8cdb74

Please sign in to comment.