Skip to content

Instantly share code, notes, and snippets.

@mjakinowittering
Forked from mvilrokx/opendyslexic.css
Last active August 29, 2015 14:12
Embed
What would you like to do?
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment