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
Post a Comment