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

Different performance of \n in fillText #434

Closed
meloalright opened this issue Feb 26, 2022 · 0 comments · Fixed by #442
Closed

Different performance of \n in fillText #434

meloalright opened this issue Feb 26, 2022 · 0 comments · Fixed by #442
Assignees
Labels
bug Something isn't working

Comments

@meloalright
Copy link
Contributor

const { createCanvas } = require('@napi-rs/canvas');

const w = 100;
const h = 100;

const canvas = createCanvas(w, h);
const ctx = canvas.getContext('2d');

ctx.fillText('ABC\nDE', 10, 40);

in browser canvas
abcde-browser

in @napi-rs/canvas
abcde-napi-rs

@Brooooooklyn Brooooooklyn self-assigned this Feb 26, 2022
@Brooooooklyn Brooooooklyn added the bug Something isn't working label Feb 26, 2022
@Brooooooklyn Brooooooklyn mentioned this issue Mar 10, 2022
mixazizup added a commit to mixazizup/canvas-temp that referenced this issue Jul 16, 2022
redhawkIT added a commit to redhawkIT/canvas-temp that referenced this issue Jul 16, 2022
tylerc2023 pushed a commit to tylerc2023/canvas that referenced this issue Sep 8, 2022
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

Successfully merging a pull request may close this issue.

2 participants