Cufon multiple fonts - How?
Posted
by Jared
on Stack Overflow
See other posts from Stack Overflow
or by Jared
Published on 2010-05-06T01:17:39Z
Indexed on
2010/05/06
1:28 UTC
Read the original article
Hit count: 353
cufon
Hi,
I am trying to implement 2 cufon fonts on the same page for the first time. Its not working.
In the documentation this is provided as an example:
<script src="Vegur_300.font.js" type="text/javascript"></script>
<script src="Myriad_Pro_400.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1', { fontFamily: 'Vegur' });
Cufon.replace('h2', { fontFamily: 'Myriad Pro' });
</script>
The thing I dont understand is - what is the link between fontFamily: 'Vegur' and the actual Vegur_300.font.js file?
In other words, how does the browser know that 'Vegur' is that particular file?
thanks in advance
© Stack Overflow or respective owner