Hi
I’d like to add the avenir font form myfonts.com. They give me a script for trial to embedd these fonts.:
font-family: ‘Avenir 35 Light’
font-family: ‘Avenir 55 Roman’
font-family: ‘Avenir 85 Heavy’
font-family: ‘Avenir 65 Medium’
<script type=”text/javascript”>
(function() {
var path = ‘//easy.myfonts.net/v2/js?sid=10336(font-family=Avenir+35+Light)&sid=10338(font-family=Avenir+55+Roman)&sid=10340(font-family=Avenir+85+Heavy)&sid=10344(font-family=Avenir+65+Medium)&key=iN3vaoouRb’,
protocol = (‘https:’ == document.location.protocol ? ‘https:’ : ‘http:’),
trial = document.createElement(‘script’);
trial.type = ‘text/javascript’;
trial.async = true;
trial.src = protocol + path;
var head = document.getElementsByTagName(“head”)[0];
head.appendChild(trial);
})();
</script>
I added the Typekit css, but it’s not working:
/* BODY FONT */
body,p {
font-family:”Avenir 35 Light”!important;
}
/* HEADING FONT */
h1, .impact-text,.impact-text-large {
font-family: “Avenir 35 Light” !important;
}
Any ideas?
Thanks for any help and best regards
Caspar