rekomat Posted January 12, 2017 Share Posted January 12, 2017 Hi everyone I'm wondering why font size and font rendering is so different when comparing `DynamicTexture` and `Canvas2D` side by side. http://www.babylonjs-playground.com/#TFFCW Note: The huge but blurred text is `8px` while the small and crisp text is `32px` Dynamic texture returns the expected result while text rendered in canvas 2d seems to be way too big and blurry. Of course I could use a bigger font size (ie. 8 times the size needed) and then scale it down (`scale: 0.125`). But I'd like to understand what's going on… Any hint much appreciated! Anyone? Quote Link to comment Share on other sites More sharing options...
adam Posted January 13, 2017 Share Posted January 13, 2017 Isn't this a better comparison? http://www.babylonjs-playground.com/#TFFCW#2 Maybe I don't understand your question. Quote Link to comment Share on other sites More sharing options...
adam Posted January 13, 2017 Share Posted January 13, 2017 Here is a doc and PG link that might be helpful: http://doc.babylonjs.com/overviews/Canvas2D_Text2D http://babylonjs-playground.com/#143CL7#1 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.