Fontconfig error: Cannot load default config file
Hi, I recently started with repl.it and I'm getting this error while using canvas in node.js. Is there a solution? In the image, all the characters are squares
Thanks in advance
Hello, that is because there is no default font with repl.it. I have experienced this with my code on
canvas too, and I have created a solution.
- Import the
Append this line and don't replace it with previous imports.
Install a font.
Go to like google fonts and then choose a font and install it. Then, unzip the folder and then drag the fonts in question to your repl.
Register the font.
- Using the font
Hopes this helps! Be sure to accept it as the correct answer if it worked for you!