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

Correctly shape input before truncating #5014

Merged
merged 4 commits into from
Sep 1, 2024

Conversation

andydotxyz
Copy link
Member

Partial fix for #4998

Need to resolve an underlying issue before this can be correctly tested - current state breaks existing tests too

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@dweymouth
Copy link
Contributor

What is the status of this PR - what's the underlying issue that needs to be resolved? I tried this out and it seems to be truncating the Japanese script way too early now:

image

@andydotxyz
Copy link
Member Author

it seems to be truncating the Japanese script way too early now:

Yup, that's the issue, Before it was treating it as a full block of unshaped characters and now it splits it into runs correctly but it will wrap early if they are not all part of exactly the same character / font / face type - the related issue I have opened is go-text/typesetting#166

@andydotxyz andydotxyz changed the base branch from master to develop August 30, 2024 14:22
@andydotxyz
Copy link
Member Author

That should cover it now @dweymouth :)

@andydotxyz andydotxyz marked this pull request as ready for review August 30, 2024 14:22
Copy link
Contributor

@dweymouth dweymouth left a comment

Choose a reason for hiding this comment

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

Seems to work fine now, thanks for getting this sorted!

@andydotxyz andydotxyz merged commit 5fb3d75 into fyne-io:develop Sep 1, 2024
12 checks passed
@andydotxyz andydotxyz deleted the fix/4998 branch September 1, 2024 16:41
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.

2 participants