javascript - Raphaeljs: Why is paper.getFont() undefined? Cufon.replace() works -


i'm using raphaeljs , i'm trying paper.print() work in .js-file. i've cufonized font , imported .font.js file html-file. in html-file, cufon.replace('h1') works (since text tag in body use font) can't paper.print() work in .js file.

according .font.js-file font family "champagne & limousines", i'm trying font calling

paper.getfont('champagne & limousines') 

an alert shows result of getfont-call undefined. try print letters doing following:

var letters = paper.print(100, 100, "stringstring", paper.getfont('champagne & limousines'), 40); 

this nothing. i've done other things in javascript file, know there's nothing wrong paper, nor including javascript file in html file.

what doing wrong?

please download latest version of raphael.that solved me.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -