Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontconfig error: Cannot load default config file #25

Open
klawdyo opened this issue Jan 14, 2019 · 4 comments
Open

Fontconfig error: Cannot load default config file #25

klawdyo opened this issue Jan 14, 2019 · 4 comments

Comments

@klawdyo
Copy link

klawdyo commented Jan 14, 2019

Image is rendering, but has an error on console.

image

Where am i wrong?

@fxa76
Copy link

fxa76 commented Mar 15, 2019

this path (without "./" at the beginning) worked for me :
localFontPath: 'fonts/Roboto-Regular.ttf',

@klawdyo
Copy link
Author

klawdyo commented Mar 15, 2019

image

@corsairdoo
Copy link

corsairdoo commented Sep 5, 2019

same problem. I tested on ubuntu server 18.04
But It works on macOS
I think it depend on OS? or just bug of ubuntu?

-edit
it was a dependency problem.
If you are using ubuntu server,
do this,
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
ref https://github.com/Automattic/node-canvas

@tkrkt
Copy link
Owner

tkrkt commented Sep 10, 2019

This bug was not reproduced on my macOS. (I don't know if it works in other environments.)
Since it moved without "./" on mac, it may be okay to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants