lambda-layer-canvas-nodejs
lambda-layer-canvas-nodejs copied to clipboard
Missing fonts in chart.js in the layer for Node 20
Hi
First of all thank you for maintaining this repo and publishing as an AWS layer!
Sorry for a bit incomplete description, but decided to raise an issue rather than keep silence :)
Context / Environment:
- AWS Lambda Runtime x86_64
- Node.JS 20x (both Lambda & Layer)
- Using
chartjs-node-canvas
4.1.6 andchart.js
3.9.1 - ChartJS config doesn't contain any font settings and special characters in the config: default font & plain English
Issue:
After upgrade from Node.JS 18 to 20 using new Layer version fonts stopped to display properly (image below is shown)
What I see from the logs (no stacktrace unfortunately): Fontconfig error: Cannot load default config file
Unfortunately I don't fully understand how/where to look deeper and is it a issue of this package or some misconfiguration on my end