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

Kerning is off for the first letters of every word #5

Open
Geokureli opened this issue Sep 17, 2024 · 1 comment · May be fixed by #7
Open

Kerning is off for the first letters of every word #5

Geokureli opened this issue Sep 17, 2024 · 1 comment · May be fixed by #7

Comments

@Geokureli
Copy link

seems the first word of the line is not affected for some unknown reason
Screenshot 2024-09-17 at 11 36 32 AM

@Geokureli
Copy link
Author

Geokureli commented Sep 17, 2024

The issue seems to be coming from these lines, and only effects html5.

 #if js
// Legnth calculation wouldn't work properly if I haven't done this.
if(character.text.isSpace(0))
    textWidth += character.width + characterSpacingHack;
else
    textWidth = innerText.textField.textWidth;
#else
textWidth = innerText.textField.textWidth;
#end

when this if case is removed and it just left with the else, this all seems to work fine

@Geokureli Geokureli linked a pull request Sep 17, 2024 that will close this issue
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 a pull request may close this issue.

1 participant