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

How do we register font via a URL or Node buffer? #2291

Closed
pranavburnwal opened this issue Sep 22, 2023 · 1 comment
Closed

How do we register font via a URL or Node buffer? #2291

pranavburnwal opened this issue Sep 22, 2023 · 1 comment

Comments

@pranavburnwal
Copy link

Issue/Feature - Unsure

How do we register font via a URL or Node buffer?

Steps to Reproduce

var Canvas = require('canvas');
var canvas = Canvas.createCanvas(200, 200);
var ctx = canvas.getContext('2d');
// etc.

Your Environment

  • Version of node-canvas (output of npm list canvas or yarn list canvas): Latest stable on npm.
  • Environment (e.g. node 4.2.0 on Mac OS X 10.8): Linux and Mac M_
@zbjornson
Copy link
Collaborator

This isn't supported right now. You'd have to fetch the URL or save the buffer to a file first. See #386: these features appear to require replacing Pango.

Closing as a dupe of that issue.

@zbjornson zbjornson closed this as not planned Won't fix, can't repro, duplicate, stale Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants