Automattic / Automattic/node-canvas
Move away from GTK 2 to newer libraries on Windows
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 1.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
## Issue or Feature
- [ ] If this is an issue with installation, I have read the [troubleshooting guide](https://github.com/Automattic/node-canvas/issues/1511).
I found a TrueType font that cannot be loaded on Windows. This should be a bug of pango in GTK 2, so I also reported it [here](https://gitlab.gnome.org/GNOME/pango/-/issues/788) on GNOME. However, GNOME team should not be expected to fix bugs on GTK 2, so the real problem is that we should not depend on GTK 2 anymore.
## Steps to Reproduce
Load this font and draw some text with it: https://github.com/kaio/wangfonts/raw/master/TrueType/wt071.ttf
```
(node.exe:2716): Pango-WARNING **: couldn't load font "??????? Not-Rotated 872.7265625px", falling back to "Sans Not-Rotated 872.7265625px", expect ugly output.
```
## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`): 2.11.2 on Windows 11
* Environment (e.g. node 20.9.0 on macOS 14.1.1): node 20.10.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.