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

Stroked text not behaving normally #2151

Open
MeghanBomberger opened this issue Oct 12, 2023 · 3 comments
Open

Stroked text not behaving normally #2151

MeghanBomberger opened this issue Oct 12, 2023 · 3 comments
Labels

Comments

@MeghanBomberger
Copy link

MeghanBomberger commented Oct 12, 2023

Not sure if this is a bug or if I've implemented incorrectly, but stroke on text is not behaving quite like I'd expect.

Instead of outlining the text with a stroke it seems to be outlining segments of each character.
image

<Svg 
  height="80" 
  width="500"
>
  <Text
    fill="none"
    stroke="red"
    strokeWidth="1"
    fontSize="45"
    fontWeight="bold"
    x="10%"
    y="100%"
  >
    STROKED TEXT
  </Text>
</Svg>

Am I missing something to make this do a normal text stroke?

@PouyaLitkouhi
Copy link

Hi,
Have the same issue, were you able to figure it out? @MeghanBomberger

@MeghanBomberger
Copy link
Author

Nope

@PouyaLitkouhi
Copy link

I had to do a trick to fix it,
I put another layer with the exact same size behind this text layer and used stroke on that. then I removed the stroke from the top layer.
top layer which has no storke is covering the bottom layer which has stroke but with this issue. now those parts that has the issue is no longer visible and I got the proper result.
looks like it depends on the font family btw.

@bohdanprog bohdanprog added the bug label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants