Automattic/node-canvas

Any emoji support?

开放

#760 创建于 2016年5月3日

 (76 条评论) (24 个反应) (0 位负责人)JavaScript (1,195 个派生)batch import
Help wantedText & FontsUpstream Issue

仓库指标

星标
 (10,689 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南