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

Problem with font at Centos7 #63

Open
LudmilaShilo opened this issue Oct 11, 2018 · 2 comments
Open

Problem with font at Centos7 #63

LudmilaShilo opened this issue Oct 11, 2018 · 2 comments

Comments

@LudmilaShilo
Copy link

Hi, all!
Thank you for the very useful module:)
Pls, help with the following problem.
I use chartjs-node in my project. It perfectly works on my computer.
screen shot 2018-10-11 at 4 50 42 pm
But it doesn't work correctly at a server.
screen shot 2018-10-11 at 4 53 04 pm

I use node.js v8.12.0 at both sides. Mac OC at the computer. The Centos 7 at digitalocean.
How can I fix this bug at Centos 7.

@grahamwells
Copy link

The font required is not installed on the CentOS server, but is on your computer
You can use the command fc-list to list installed fonts in CentOS,

You can then install new ones e.g. yum install open-sans-fonts
and select the font in the 'beforeDraw' function

chartNode.on('beforeDraw', function (Chartjs) {
Chartjs.defaults.global.defaultFontFamily = 'Open Sans';
});

@zakariakhorf
Copy link

hi @LudmilaShilo , can you please tell me how you solved the problem if you did ?

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

3 participants