SYNTHBLAST-threejs-game icon indicating copy to clipboard operation
SYNTHBLAST-threejs-game copied to clipboard

Uncaught TypeError: i.measureText is not a function

Open abow opened this issue 3 years ago • 3 comments

It looks like this might be the result of OffscreenCanvasRenderingContext2D not having a measureText function in Firefox. Here is the error message:

Uncaught TypeError: i.measureText is not a function measureFont TextMetrics.js:590 measureText TextMetrics.js:104 updateText Text.js:147 get Text.js:558 LabeledProgressBar LabeledProgressBar.js:26 init LevelScreen.js:136 LevelScreen LevelScreen.js:8 newGame (index):169 init (index):148 (index):120

abow avatar Aug 08 '22 02:08 abow

https://caniuse.com/mdn-api_offscreencanvasrenderingcontext2d_measuretext

abow avatar Aug 08 '22 02:08 abow

Hey, thanks for reporting this. What is your system? I'm Mac 10.15.7 with the latest Firefox and synthblast is loading

brianrisk avatar Aug 08 '22 12:08 brianrisk

Windows 10 Pro Nvidia Geforce GTX 960 Firefox 103.0.1 (64 bit)

It is working on my Windows 10 Home laptop that has an integrated GPU (same version of FF).

abow avatar Aug 08 '22 13:08 abow