fillText no longer working? (FireFox 27.0.1) -
this piece of html demonstrates problem:
<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>canvas filltext()</title> </head> <body> <canvas id="canvas" width="400" height="200"></canvas> <script> var canvas = document.getelementbyid("canvas"); var context = canvas.getcontext("2d"); context.font = "40px sans serif "; context.linewidth = 3; context.strokestyle = "blue"; context.stroketext("hello world!", 40, 40); context.fillstyle = "black"; context.filltext("hello world!", 40, 80); </script> </body> </html> while other browsers show both outlined , solid text, ff27 not render text using filltext(). suggestions? thanks.
i unable comment due reputation limitations, running same issue :(. unable draw filled text in firefox 27.0.1 on windows 7 pro sp1. tried changing fillstyle property '#000', '#000000', 'black', 'rgb(0,0,0)', 'rgba(0,0,0,.8)'. attempted use deprecated functions 'mozdrawtext' , 'mozpathtext', both of have been removed api. please answer post if figure out workaround. now, guess call both stroketext , filltext black, , hope nobody notices hollow text in firefox.
just know, reported bug at: https://bugzilla.mozilla.org/show_bug.cgi?id=982837
Comments
Post a Comment