Skip to content

Instantly share code, notes, and snippets.

@mjakinowittering
Forked from mvilrokx/opendyslexic.css
Last active October 23, 2023 18:46
Show Gist options
  • Save mjakinowittering/cab8abdf506ed3bfbafc to your computer and use it in GitHub Desktop.
Save mjakinowittering/cab8abdf506ed3bfbafc to your computer and use it in GitHub Desktop.
How to add the OpenDyslexic font to a website.
@font-face {
font-family: 'opendyslexic';
src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Regular.otf');
font-style: normal;
font-weight: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Italic.ttf');
font-style: italic;
font-weight: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-Bold.ttf');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('http://dyslexicfonts.com/fonts/OpenDyslexic-BoldItalic.ttf');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: eulexia;
src: url('http://dyslexicfonts.com/fonts/eulexia.ttf');
}
* {
font-size:20px;
line-height:200%;
color: #191A42;
font-family:opendyslexic !important;
}
@Hugo-cmd1
Copy link

Does this still work?

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