...
If you prefer to include 3rd party web fonts without @font-your-face module you should be able to find instructions on how to include the web font from your css at each of the respective 3rd party websites.
Here is how you can load this in with less overhead via a preprocess function: http://cheekymonkeymedia.ca/blog/drupal-planet/how-add-typekit-fonts-your-drupal-website :
Code Block | ||
---|---|---|
| ||
/**
* Implements template_preprocess_html().
*/
function MYTHEME_preprocess_html(&$variables) {
//Adds typekit js to theme
drupal_add_js('//use.typekit.net/wje3ojf.js', 'external');
drupal_add_js('try{Typekit.load();}catch(e){}', 'inline', 'page_bottom');
}
- See more at: http://cheekymonkeymedia.ca/blog/drupal-planet/how-add-typekit-fonts-your-drupal-website?utm_source=The+Weekly+Drop&utm_medium=email&utm_campaign=The_Weekly_Drop_Issue_177_02_19_2015#sthash.qiGZa8Mf.dpuf |
Self hosting
If you have a copy of a web font that you want to use and intend to host it along with the site then you can use a Sass mixin like the following:
...