Automattic/node-canvas

Any emoji support?

Open

#760 创建于 2016年5月3日

在 GitHub 查看
 (76 评论) (24 反应) (0 负责人)JavaScript (1,140 fork)batch import
Help wantedText & FontsUpstream Issue

仓库指标

Star
 (9,524 star)
PR 合并指标
 (平均合并 34天 18小时) (30 天内合并 2 个 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

贡献者指南