Ask coding questions

← Back to all posts
How do I get context.font working
KarenTheKiller

I'm using canvas on node.js and it shows an error when I use ctx.font = '60px sans-serif';

It shows this error: Fontconfig error: Cannot load default config file

Comments
hotnewtop
SixBeeps

Oh yeah, I kinda remember getting this error a while back while messing with canvas stuff. Try uploading a font directly to the Repl and using that.