Skip to content

Variable font support #2063

Open
Open
@controversial

Description

@controversial

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): [email protected]
  • macOS 12.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions