(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling

#faq I can't download the font to my application
(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling back to "Sans Not-Rotated 25px", expect ugly output.
(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling back to "Sans Not-Rotated 25px", expect ugly output.
const { createCanvas, loadImage, registerFont, Image } = require('canvas');
registerFont('./Lato-Regular.ttf', { family: 'Lato' });
const { createCanvas, loadImage, registerFont, Image } = require('canvas');
registerFont('./Lato-Regular.ttf', { family: 'Lato' });
3 Replies
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by staff
Outcast
OutcastOP2mo ago
const { createCanvas, loadImage, registerFont, Image } = require('canvas');
registerFont('./Lato-Regular.ttf', { family: 'Lato' });

ctx.font = '25px Lato';
ctx.fillStyle = '#808080';
ctx.fillText(`${member.displayName} Top #${userRank}`, 195, 85);
const { createCanvas, loadImage, registerFont, Image } = require('canvas');
registerFont('./Lato-Regular.ttf', { family: 'Lato' });

ctx.font = '25px Lato';
ctx.fillStyle = '#808080';
ctx.fillText(`${member.displayName} Top #${userRank}`, 195, 85);
(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling back to "Sans Not-Rotated 25px", expect ugly output.
(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling back to "Sans Not-Rotated 25px", expect ugly output.
souji
souji2mo ago
this seems entirely unrelated to discord.js "i use it within the context of a bot" does not make the question discord.js related consider using #other-js-ts for other js questions
Want results from more Discord servers?
Add your server