Article | 70000959 |
Type | Wish |
Product | WebJS |
Version | 7009 |
Date Added | 12/7/2016 12:00:00 AM |
Fixed | 7.7010.0.3 (12/8/2016 12:00:00 AM) |
Submitted by | Shane Cawser |
Summary
Ability to be able to break long text into multiple lines
Solution
Added in version 7010.0.3
if text contains '\n' character and/or BoxWidth > 0 then it split the text in multi lines.
One line for each \n and if resulting lines are not fit to BoxWith then move words to next line.
Example:
var txt = vdcanvas.AddText("VectorDraw Web Library \n Text multiline example", 1.0, [0, 0, 0], vdConst.VdConstHorJust_VdTextHorLeft, vdConst.VdConstVerJust_VdTextVerTop);
txt.BoxWidth = 10;