Skip to content

Apply stroke letter by letter if there is custom letter spacing - #6883

Merged
photonstorm merged 1 commit into
phaserjs:masterfrom
RomanFrom710:6880-text-with-stroke-and-letter-spacing-issue
Aug 6, 2024
Merged

photonstorm merged 1 commit into
phaserjs:masterfrom
RomanFrom710:6880-text-with-stroke-and-letter-spacing-issue

Conversation

@RomanFrom710

Copy link
Copy Markdown
Contributor

Please do not update the README or Change Log, we will do this when we merge your PR.

This PR (delete as applicable)

  • Fixes a bug

Describe the changes below:

Fixed #6880 - applying stroke to a single letter rather than to a single line to match custom letter spacing when necessary

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This pull request fixes a bug related to applying strokes to text with custom letter spacing in the Phaser game engine. The changes ensure that strokes are applied to each letter individually when custom letter spacing is used.

  • Modified /src/gameobjects/text/Text.js to apply strokes to individual letters rather than entire lines when custom letter spacing is specified.
  • Fixes issue #6880, preventing visual inconsistencies in text rendering with custom letter spacing.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@photonstorm

Copy link
Copy Markdown
Collaborator

👍

@photonstorm
photonstorm merged commit 1624312 into phaserjs:master Aug 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.

Text with stroke + letter spacing issue

2 participants