-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fontconfig error: Cannot load default config file #38
Comments
same problem after i use v2.4.0 const { registerFont } = require('canvas')
registerFont('./Structures/fonts/Genta.ttf', { family: 'Genta' }) this is my code const captcha = new CaptchaGenerator()
.setDimension(150, 450)
.setCaptcha({font: "Genta", size: 60, color: "deeppink" })
.setDecoy({ opacity: 0.5 })
.setTrace({ color: "deeppink" });
const captchaAttachment = captcha.generateSync(
await captcha.png,
"captcha.png"
);
interaction.reply({ files: [captchaAttachment], content: `Code: ${captcha.text}` }); |
check version correctly. v2.4.0 is not yet released it's still a draft. BTW the way you use registerFont() is correct so the only issue is custom font do not support in your system. |
Close because of inactivity I am going to assume that problem is resolved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello iam using Replit and iam getting this error any idea how i can fix it
there is not Letters on the photo
Preview https://imgur.com/Pedn0gd
The text was updated successfully, but these errors were encountered: