Closed
Description
The font example (examples/font.js
) isn't working for me as expected when I run it on an AWS Ubuntu EC2 instance: it's just rendering the same font four times (see below). When I run this locally on OS X, I get four different fonts (as expected).
I think my install steps might just be missing something, but I don't seem to be getting any errors back, and I've tried debugging (via console.log
and fprintf
) without being able to find anything that looks wrong.
Here are my reproduction steps:
-
Launch EC2 instance with the "Ubuntu Server 14.04 LTS (HVM), SSD Volume Type" image (
ami-29ebb519
). -
Install the node-canvas dependencies:
sudo apt-get update sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
-
Get the latest node-canvas from GitHub, and install:
sudo apt-get install git nodejs-legacy npm git clone https://github.com/Automattic/node-canvas.git cd node-canvas npm install
-
Run the example:
cd examples node font.js
Here's the output I'm getting on the Ubuntu instance:
Metadata
Metadata
Assignees
Labels
No labels