Width

A custom width can be applied to each block of text such that line breaks and text align will remain within the width.

<div id="vara-container"></div>
var vara = new Vara("#vara-container","SatisfySL.json",[{
    text:"The quick brown fox jumps over the lazy dog",
    width:200
},{
    text:"How razorback jumping frogs can level six piqued gymnasts.",
    width:300,
    textAlign:"center"
},{
    text:"Pack my box with five dozen liquor jugs.",
    width:300,
    textAlign:"right"
}],{
    strokeWidth:2,
    fontSize:46
});

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments