Automattic / Automattic/node-canvas

Variable font support

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

Description

## Issue or Feature
How can I specify variable fonts using `Canvas.registerFont`? Pango appears to support variable fonts as of version 1.3 but I can’t find any reference to variable font support in `registerFont`, which seems to require a specific weight.

Does `node-canvas` support variable fonts (on a `wght` axis or otherwise)? If so, how should variable fonts be registered? If not, what would ned to be done to enable support?

## Your Environment
* Version of node-canvas (output of `npm list canvas` or `yarn list canvas`): canvas@2.9.3
* macOS 12.4

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.