Automattic / Automattic/node-canvas

Windows 11 - Pango-WARNING **: couldn't load font

Open
#2,519 1 comment 0 reactions 0 assignees View on GitHub
Text & Fonts
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

Not the first time this issue raised.

On v2.10.2, it is able to load quite many fonts.
But on newer versions, NONE can be loaded.

```
const pathToFontRegular = path.join(__dirname, "src/fonts/MavenPro-Regular.ttf");
const pathToFontBold = path.join(__dirname, "src/fonts/MavenPro-Bold.ttf");
registerFont(pathToFontRegular, { family: "Maven Pro", weight: "400" });
registerFont(pathToFontBold, { family: "Maven Pro", weight: "700" });

(process:37144): Pango-WARNING **: 22:12:19.403: couldn't load font "Maven Pro Not-Rotated 42px", falling back to "Sans Not-Rotated 42px", expect ugly output.
(process:37144): Pango-WARNING **: 22:12:19.416: couldn't load font "Maven Pro 42px", falling back to "Sans 42px", expect ugly output.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.