Skip to content

letterSpacing not working #2181

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

Closed
feri-irawan opened this issue Dec 29, 2022 · 1 comment
Closed

letterSpacing not working #2181

feri-irawan opened this issue Dec 29, 2022 · 1 comment

Comments

@feri-irawan
Copy link

Code

  const canvas = createCanvas(width, height);
  const ctx = canvas.getContext("2d");
  
  ctx.font = `bold ${fontSize}px customFont`;
  ctx.textAlign = "center";
  ctx.fillStyle = "#fff";
  ctx.letterSpacing = "29px"; // <------
  ctx.strokeStyle = "red";
  ctx.lineWidth = 5;
@zbjornson
Copy link
Collaborator

Duplicate of #1014. It's part of the Canvas spec now, so nothing blocking its implementation (the old discussion there was blocked on how to add it without adding a non-standard feature).

@zbjornson zbjornson closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants