...

View Full Version : Question about paperjs, font-family for PointText



dadli88
06-21-2012, 01:21 PM
Hello

I create some text item, this is code:

var text = new PointText(new Point(50,50));
text.content = "tttext";

text.characterStyle = {
fontSize: 30,
fillColor: "#009"
}

Now, i want that, this text have for example font: "Verdana". tell me please, how to make this?

DaveyErwin
06-21-2012, 02:06 PM
text.characterStyle = {
font: "Verdana",
fontSize: 30,
fillColor: "#009"
}

http://paperjs.org/reference/characterstyle

dadli88
06-21-2012, 03:15 PM
DaveyErwin
Thanks very much.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum