Comments (2)
That happens when Pango can't load a font module. I just tried running some font code with that docker image and here was the output:
(process:28): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
'/etc/pango/pango.modules'
You should create this file by running:
pango-querymodules > '/etc/pango/pango.modules'
(process:28): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'
(process:28): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
The problem is that neither the old builds (1.4.0, 1.5.0, 1.6.0) or the new builds (1.6.5, 2.0.0 alpha 1 and 2) are going to work for you. The old builds need to run on a system that has Pango "modules" (your docker image doesn't). The new build doesn't have this restriction but needs a certain GLib that many old systems don't have.
The docker image has GLib 2.42 but I'm distributing something that references functions added in GLib 2.60.
Basically everyone is having the same problems and I need to figure out how to distribute GLib or something that doesn't depend on it
from node-canvas-prebuilt.
Thanks for your reply. I'll ask the Firebase guys if they can update the docker image. In the meanwhile, I found a workaround solution using https://github.com/kaivi/node-canvas-text to draw the text.
from node-canvas-prebuilt.
Related Issues (20)
- npmjs is not being updated for new releases anymore HOT 2
- question about node-canvas releases and node.js versions
- install error, win 10, npm v6.13.4, node v12.13.1.
- Server crashes on starting the node app. Issue related to canvas-prebuilt: ^2.0.0-alpha.14 HOT 1
- nodejs v14.0.0 (node-v83 ABI, glibc) HOT 2
- Getting 404 on v2.6.1/canvas-v2.6.1-node-v79-linux-musl-x64.tar.gz HOT 1
- How to set mirror address when installing this package HOT 3
- installation problem HOT 1
- Still no ARM releases for raspberry pi after 3 years?
- Compatibility with Node version 12 HOT 2
- Prebuilt binaries not found for 2.6.1 and node 15.8.0 HOT 3
- M1 chip issue? HOT 4
- Cannot use node-canvas on OpenBSD 7.4
- Pre built binaries not found for canvas 2.6.1 and node 18
- Prebuilt for node_v72 HOT 3
- Add changelog to release notes HOT 1
- no win32-unknown-x64.tar.gz release for v2.6.0 HOT 2
- no node-v72-win32
- Can't Install on macOS HOT 2
- Electron build fails (Pre-built binaries not found) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-canvas-prebuilt.