Automattic / Automattic/node-canvas

Pango-WARNING **: 16:39:12.585: couldn't load font "HYWenHei Not-Rotated 53.3330078125px Not-Rotated 53.3330078125px", falling back to "Sans Not-Rotated 53.3330078125px", expect ugly output error when registering font.

Open
#1,801 2 comments 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

I've installed canvas and everything else is working great. However, after I try to register a font from a `.ttf` file I get that error. When I try to use the font in an image, I also get that error. I'm using canvas version `^2.7.0` and am on `Windows 10 64 bit`.
The code I'm using to register the font is as follows:
`path\to\file', { family: 'Name' })`
If anyone has any idea why this is happening and can help it would be much appreciated and I'm happy to give more information.

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.