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

貢獻者指南