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

Text in chart is broken #1

Closed
Vilsepi opened this issue Jan 20, 2025 · 1 comment
Closed

Text in chart is broken #1

Vilsepi opened this issue Jan 20, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Vilsepi
Copy link
Owner

Vilsepi commented Jan 20, 2025

Lambda logs:

Fontconfig error: Cannot load default config file

Chart renders but all text characters in it are empty rectangles.

This is a known issue in the lambda layer, need to bundle a font manually charoitel/lambda-layer-canvas-nodejs#27

Vilsepi added a commit that referenced this issue Jan 21, 2025
@Vilsepi
Copy link
Owner Author

Vilsepi commented Jan 21, 2025

Fixed by manually including a font with canvas.registerFont().

@Vilsepi Vilsepi closed this as completed Jan 21, 2025
@Vilsepi Vilsepi self-assigned this Jan 21, 2025
@Vilsepi Vilsepi added the bug Something isn't working label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant