I am trying to implement two cufon fonts on one page for the first time. This does not work.
This is presented as an example in the documentation:
<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>
What I don't understand is the relationship between fontFamily: "Vegur " and the actual file Vegur_300.font.js ?
In other words, how does the browser know that "Vegur" is a specific file?
early
source
share