Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2012
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question about paperjs, font-family for PointText

    Hello

    I create some text item, this is code:
    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?

  • #2
    Regular Coder
    Join Date
    Aug 2010
    Posts
    966
    Thanks
    19
    Thanked 211 Times in 209 Posts
    Code:
    text.characterStyle = {
                 font: "Verdana",
    	fontSize: 30,
    	fillColor: "#009"
    }
    http://paperjs.org/reference/characterstyle
    Last edited by DaveyErwin; 06-21-2012 at 02:17 PM.

  • Users who have thanked DaveyErwin for this post:

    dadli88 (06-21-2012)

  • #3
    New Coder
    Join Date
    May 2012
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts
    DaveyErwin
    Thanks very much.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •