Skip to content

Commit c8cdb74

Browse files
committed
fix(a11y): Update OpenDyslexic from 0.920 to 2.001
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 2480567 commit c8cdb74

7 files changed

Lines changed: 3 additions & 11 deletions

File tree

-184 KB
Binary file not shown.
-304 KB
Binary file not shown.
-132 KB
Binary file not shown.
-171 KB
Binary file not shown.
-301 KB
Binary file not shown.
-126 KB
Binary file not shown.

apps/theming/lib/Themes/DyslexiaFont.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,22 @@ public function getCSSVariables(): array {
4343
}
4444

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

5349
return "
5450
@font-face {
5551
font-family: 'OpenDyslexic';
5652
font-style: normal;
5753
font-weight: 400;
58-
src: url('$fontPathWoff') format('woff'),
59-
url('$fontPathOtf') format('opentype'),
60-
url('$fontPathTtf') format('truetype');
54+
src: url('$fontPathOtf') format('opentype');
6155
}
62-
56+
6357
@font-face {
6458
font-family: 'OpenDyslexic';
6559
font-style: normal;
6660
font-weight: 700;
67-
src: url('$boldFontPathWoff') format('woff'),
68-
url('$boldFontPathOtf') format('opentype'),
69-
url('$boldFontPathTtf') format('truetype');
61+
src: url('$boldFontPathOtf') format('opentype');
7062
}
7163
";
7264
}

0 commit comments

Comments
 (0)