Search the Community
Showing results for tags 'typography'.
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?
Looks like pixi.Text automatically adds a generous padding at the top of the text (tried with different fonts). Here how my logic draws on canvas (sans pixi): Here same logic with pixi.Text: Any idea how to know the precise amount of offset applied by Pixi? Thanks for any help! chr