Skip to content
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

Move away from GTK 2 to newer libraries on Windows #2368

Open
1 task
UlyssesZh opened this issue Mar 27, 2024 · 1 comment
Open
1 task

Move away from GTK 2 to newer libraries on Windows #2368

UlyssesZh opened this issue Mar 27, 2024 · 1 comment

Comments

@UlyssesZh
Copy link

Issue or Feature

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 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
@UlyssesZh
Copy link
Author

The same font cannot be loaded on Debian bookworm and Ubuntu noble either? It works on Debian bullseye. Bullseye has pango 1.46 while bookworm has pango 1.51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants