Skip to content

Instantly share code, notes, and snippets.

@marisqaporter
Created March 2, 2018 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marisqaporter/b2c30dbfe8b237a86dcbbd5f7f44d9fd to your computer and use it in GitHub Desktop.
Save marisqaporter/b2c30dbfe8b237a86dcbbd5f7f44d9fd to your computer and use it in GitHub Desktop.
fonts-to-drupal
@font-face {
font-family: Neutra;
src: url('NeutraTextBook.otf'),
url('NeutraText-Book.woff') format('woff'),
url('NeutraText-Book.eot'),
url('NeutraText-Book.ttf') format('truetype');
}
@font-face {
font-family: Neutra-Bold;
src: url('NeutraText-Bold.otf'),
url('NeutraText-Bold.woff') format('woff'),
url('NeutraText-Bold.eot'),
url('NeutraText-Bold.ttf') format('truetype');
}
@font-face {
font-family: Neutra-Demi;
src: url('NeutraText-Demi.otf'),
url('NeutraText-Demi.woff') format('woff'),
url('NeutraText-Demi.eot'),
url('NeutraText-Demi.ttf') format('truetype');
}
@marisqaporter
Copy link
Author

Add fonts to your css folder (you can move and retarget later). Put this in your html.css file. Use the font-family declaration to style your css.

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