Giter Club home page Giter Club logo

Comments (2)

chearon avatar chearon commented on August 13, 2024

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.

redpandatronicsuk avatar redpandatronicsuk commented on August 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.