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

build(experimental): replace node-canvas with @napi-rs/canvas #1782

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wodeni
Copy link
Member

@wodeni wodeni commented Jun 6, 2024

Description

This PR is an experiment to replace node-canvas with an alternative. node-canvas requires native dependencies and specific Python versions to install, bloating the setup experience for Penrose contributors.

The candidates are:

measureText returns width only and does no shaping. It is only sort of valid with ASCII letters.

...which is not promising

Implementation strategy and design decisions

Include a high-level summary of the implementation strategy and list important design decisions made, if any.

Examples with steps to reproduce them

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have reviewed any generated registry diagram changes

Open questions

Questions that require more discussion or to be addressed in future development:

Copy link

Deploying penrose with  Cloudflare Pages  Cloudflare Pages

Latest commit: b63fb11
Status: ✅  Deploy successful!
Preview URL: https://e53ea258.penrose-72l.pages.dev
Branch Preview URL: https://canvas.penrose-72l.pages.dev

View logs

@wodeni wodeni changed the title build: replace node-canvas with @napi-rs/canvas build(experimental): replace node-canvas with @napi-rs/canvas Jun 6, 2024
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.

None yet

1 participant