-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
I have 4 fonts that aren't installed on my system. They are just placed in a fonts folder in my assets folder. I load them using registerFont like said in the docs. They load fine but when I try to use them to fill some text the pango error shows up. If I install the fonts, it works fine. If I uninstall them, it stops working again. I'm on windows
for (const font of fs.readdirSync("./assets/fonts")) {
const name = font.split(".")[0];
console.log("Loading font:", name);
registerFont(`./assets/fonts/${font}`, {
family: name
})
}
(process:39704): Pango-WARNING **: 04:41:52.851: couldn't load font "FN Heading Now Bold Not-Rotated 150px", falling back to "Sans Bold Not-Rotated 150px", expect ugly output.
(process:39704): Pango-WARNING **: 04:41:52.880: couldn't load font "FN Heading Now Bold Not-Rotated 60px", falling back to "Sans Bold Not-Rotated 60px", expect ugly output.
(process:39704): Pango-WARNING **: 04:41:52.885: couldn't load font "FN Heading Now Bold 60px", falling back to "Sans Bold 60px", expect ugly output.
(process:39704): Pango-WARNING **: 04:41:52.892: couldn't load font "Heading Now Bold Italic Not-Rotated 60px", falling back to "Sans Bold Italic Not-Rotated 60px", expect ugly output.
(process:39704): Pango-WARNING **: 04:41:52.962: couldn't load font "FN Heading Now Medium Not-Rotated 20px", falling back to "Sans Medium Not-Rotated 20px", expect ugly output.
canvas@3.1.2
Metadata
Metadata
Assignees
Labels
No labels