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

Change the ussage of FormattedText to TextLine #1

Conversation

whistyun
Copy link

@whistyun whistyun commented Mar 4, 2022

to fix AvaloniaUI#204 (comment)

These changes ensure that character widths are measured correctly.

@danipen
Copy link

danipen commented Mar 27, 2022

@whistyun thank you for fixing this. I gave it a try and all is working as expected.

However, I noticed that after removing the useCheapGlyphMeasurement (assuming same width for all chars in a long line), now AvaloniaEdit is unable to handle very long lines, such this file. Trying to move the caret/edit the long line is impossible.

Could you please bring back the useCheapGlyphMeasurement?

I know this is not perfect implementation, but I'd like for now to keep what we had working. AFAIK @Gillibald will add horizontal virtualization in PR AvaloniaUI#216, which will be a much better implementation.

@whistyun
Copy link
Author

Sorry, I had missed AvaloniaUI#204 (comment).
I think this change is no longer necessary.
Can I close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants