Automattic/node-canvas

Any emoji support?

Open

#760 ouverte le 3 mai 2016

Voir sur GitHub
 (76 commentaires) (24 réactions) (0 assignés)JavaScript (9 524 stars) (1 140 forks)batch import
Help wantedText & FontsUpstream Issue

Description

The following code gives me the follwing image output:

    var Canvas = require('canvas');
    var Image = Canvas.Image;
    var canvas = new Canvas(1200, 600);
    var ctx = canvas.getContext('2d');

    ctx.font = '80px HelveticaNeue';
    ctx.fillText('Start Here emoji 🍔', 50, 100);

    res.setHeader('Content-Type', 'image/png');
    canvas.pngStream().pipe(res);

Not rendering the emoji. Is this possible?

tiltimage

Guide contributeur