Search the Community
Showing results for tags 'filltext'.
Found 3 results
Hello, I am struggling with a memory leak which migth be related to Canvas2D fillText function. There is already a bug report available: https://bugs.chromium.org/p/chromium/issues/detail?id=703297 However I wonder if anyone of you also experienced this bug and might have a workaround for this? Thanks in advance. Best, benny!
I can write texts on "billboard style" mashes in any combination of text and background colors. However, I cannot figure out how to do it when wrapping text. For text wrapping I've used a code I've seen on this forum and on Stackoverflow and it works fine. However, it uses direct functions of WebGL and that apparently collides with the usage of BABYLON.JS objects (not surprising as it goes underneath the Babylon layer). So, I can draw text In white, but not in black. I'm sure it can be done, but I'm fighting it the whole morning without succes, Please have a look into this playground example (I've isolated it from the rest of my application). To see the meshes, double click on the canvas. https://www.babylonjs-playground.com/index.html#MBENKS Thanks very much in advance.
Hi, I have a problem with fillstroke() on a canvas text. I want white text with a black outline of 5px. But on some characters it looks distorted (attached is a screenshot in Chrome, it's Arial 20pt). I had that problem before with createjs (I used two texts, one white, one with outline=5, above each other). Then I thought it's probably a createjs bug and if I do it using filltext() and fillstroke() right on the canvas it would be solved. But it's the same. Did anybody have that problem already? It's a little weird because I don't find anything about that and it's a very basic thing... Here the code: ctx.fillStyle = '#fff';ctx.strokeStyle = '#000';ctx.lineWidth = 5;ctx.font = '20pt Arial';ctx.textAlign = 'center';ctx.strokeText('Hello', 0, 0);ctx.fillText('Hello, 0, 0);Thanks for help!