Ericky14 Posted January 25, 2018 Share Posted January 25, 2018 Hello, I believe I asked about this before on this forum, but I can't find the post anymore and I remember I remember people told me it wasn't a bug. But, I just want to make sure because this behavior is weird. When using the font color white for the TextBlock, I get a greyish color on small texts, is there a grey border around the text or something like that? Is there a way to remove it? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 25, 2018 Share Posted January 25, 2018 Can you repro it in the playground? Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted January 26, 2018 Author Share Posted January 26, 2018 http://www.babylonjs-playground.com/#9U086#182 Quote Link to comment Share on other sites More sharing options...
brianzinn Posted January 26, 2018 Share Posted January 26, 2018 If you zoom in then the text is white and very clear; Seems more related to "small texts" as you said. I thought maybe anti-aliasing, but adding FXAA didn't seem to make a difference... Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted January 26, 2018 Author Share Posted January 26, 2018 This seems to be related to only white texts, so there's no way around this issue? Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted January 26, 2018 Author Share Posted January 26, 2018 Btw, I found a work around Set the shadowBlur to 1 and shadowColor to #FFF. These are properties of a Control, you can just set them on the TextBlock. Quote Link to comment Share on other sites More sharing options...
brianzinn Posted January 26, 2018 Share Posted January 26, 2018 I added to your PG and didn't see any change text1.shadowBlur = 1; text1.shadowColor = '#FFF'; Quote Link to comment Share on other sites More sharing options...
Ericky14 Posted January 26, 2018 Author Share Posted January 26, 2018 Sorry, that value worked for me in my local project. For the playground one, you need another value.. I believe shadowBlur value is related to the font size. Here is the fixed version. http://www.babylonjs-playground.com/#9U086#183 brianzinn and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 26, 2018 Share Posted January 26, 2018 Good! 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.