Automattic/node-canvas

Any emoji support?

オープン

#760 opened on 2016/05/03

 (76 件のコメント) (24 件のリアクション) (0 人の担当者)JavaScript (1,195 件のフォーク)batch import
Help wantedText & FontsUpstream Issue

Repository metrics

Stars
 (10,689 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド