Frage

I had Created Curved Text based on JSFIDDLE .Now i want add font family to that curved text.when i add font family in curved text it will not render predefined function from fabric.all.min.js Here my font family custom code and screenshot following below

            $('#font_bold').click(function() {
            var checked = $('#font_bold').attr('checked');
            if(checked =='checked') {
                Example.set('fontWeight',$(this).val()  ) ;
            }else {
                Example.set('fontWeight','100') ;
            }
            });

and i defined in font family in this MY DEMO JSFIDDLE but i can't achieved it . how to solve it. Pls Guide me how to assign Font family in Curve text?

War es hilfreich?

Lösung

Try this code:

 this.group.item(i).setFontFamily  (this.opts.fontFamily)

Check the demo http://jsfiddle.net/vivek_27/5Unbh/1/ and replace the above line in the demo link.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top