Hi, guys.
--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi, all.
for (var i = 0, l = lines.length; i < l; i++) {
ctx.shadowColor = shadowColor;
var line = lines[i];
if (style.hasFill()) {
ctx.fillText(line, 0, 0);
ctx.shadowColor = 'rgba(0,0,0,0)';
}
if (style.hasStroke())
ctx.strokeText(line, 0, 0);
//---Implementetion for draw UNDERLINE
//Draw underline (just example for text justification='left')
var padding = 3;//distanse from bottom part of text's line to 'underline'
ctx.moveTo(0,padding);
ctx.lineTo(ctx.measureText(line), padding);
ctx.stroke();
ctx.translate(0, leading);
}
I think, this is work. And we could react on any justification (some changes in coordinates for moveTo, lineTo methods).
Am i right?
Best regards,
Roman.
--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi, all.
Nick, how do you generate SVG data for your example with 'underline' text?
--
You received this message because you are subscribed to the Google Groups "Paper.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to paperjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.