Skip to content

feat: use @napi-rs/canvas instead node-canvas #3

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

Merged
merged 3 commits into from
Jul 16, 2025

Conversation

BQXBQX
Copy link
Collaborator

@BQXBQX BQXBQX commented Jul 16, 2025

problem

Chinese font files are too large (A Chinese font file takes 30 MB) and download speed is slow, so the best way may be to get the font files through CDN.

  • The current solution is only a temporary solution.
  • Later, the font file needs to be sliced to reduce the font file size

@hustcc hustcc changed the title chore: use @napi-rs/canvas instead node-canvas feat: use @napi-rs/canvas instead node-canvas Jul 16, 2025
@hustcc hustcc merged commit c8ed2e0 into main Jul 16, 2025
1 check passed
@hustcc hustcc deleted the chore/canvas-replacement branch July 16, 2025 05:29
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

Successfully merging this pull request may close these issues.

use @napi-rs/canvas instead node-canvas
2 participants