|
|
|
@ -43,30 +43,22 @@ class DyslexiaFont extends DefaultTheme implements ITheme { |
|
|
|
} |
|
|
|
|
|
|
|
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'); |
|
|
|
} |
|
|
|
";
|
|
|
|
} |
|
|
|
|