How do I get context.font working

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

You are viewing a single comment. View All

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.