jquery plugins - cufon.js conflict with fabric.js -


i using cufon.js render text. text not in fabric canvas exists on page. removing fabric.js allows text rendered ok, breaks when put fabric.js back. script render text is:

<script type="text/javascript"> cufon.replace('#signature'); </script> 

how can fix this?

updated:

these script links have on page (fabric.js all.min.js version 1.1.0 found in dist folder)

<script type="text/javascript" src="../scripts/cufon-yui.js" type="text/javascript"></script> <script type="text/javascript" src="../scripts/font.js" type="text/javascript"></script> <script type="text/javascript" src="../scripts/fabric.js" type="text/javascript"></script> 

you need render font replaces. this:

$("#signature").change(function(e){     var object = canvas.getactiveobject();     if(object && object.type == "text"){         object.fontfamily = $(this).val();         canvas.renderall();     } }); 

or

cufon.replace('#signature', {fontfamily: '<font_name>'}); 

check this:

http://jsfiddle.net/ptcoder/tcvut/


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -