povdocs/webvr-starter-kit

Text rendered center aligned if text width is shorter than the 'wrap'

ptamzz opened this issue · 1 comments

Even thought textAlign is set to left, a string if shorter than 1 full line, is rendered center-aligned.

The attached image is how you get if declared as below:

var tempRender = container.text({ wrap: textWrapFactor, font: fontSize + 'pt Roboto', textAlign: 'left', fillStyle : '#333333', text : str });

screen shot 2016-01-22 at 9 21 12 pm

I'm not able to replicate this. Can you share the code of your example?