LinkTree Posted March 31, 2015 Share Posted March 31, 2015 Hi, I just ran into this issue when rendering text with a stroke. I took this image from another thread here. it shows the issue pretty well. do you see these sharp black extrusions from the text stroke? I am not sure what's causing this. it happens when you try to give text a wide stroke and depends on the size of the font. larger fonts require wider stroke to make this issue noticeable. Quote Link to comment Share on other sites More sharing options...
Sebi Posted April 1, 2015 Share Posted April 1, 2015 Set the lineJoin property to round. Quote Link to comment Share on other sites More sharing options...
LinkTree Posted April 1, 2015 Author Share Posted April 1, 2015 Set the lineJoin property to round. Thanks. this functionality is currently missing in panda.js's pixi lib so I had to add it myself. add thisstyle.lineJoin = style.lineJoin || 'miter';style.miterLimit = style.miterLimit || 10;to PIXI.Text.prototype.setStyle and thisthis.context.lineJoin = this.style.lineJoin;this.context.miterLimit = this.style.miterLimit;to PIXI.Text.prototype.updateText afterthis.context.textBaseline = 'alphabetic'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.