I'm trying to re-create an old arcade game (pong) using the JavaScript/HTML5 canvas.
For maximum duplication, I downloaded a retro-styled font for displaying the players' scores, but the problem is when I load it via CSS using @font-face
, it displays this error message:
Failed to decode downloaded font: http://localhost:8000/bit5x5.ttf
OTS parsing error: cmap: Failed to parse table
I'm, obviously, using a localhost
, and I want to type that text ON the JavaScript Canvas, using the canvas text methods.
I found many many solutions online, but none of them seem to work in my case. Please tell me how to fix this issue as fast as possible, thanks in advance.