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

coordsAtPos is underspecified at line wrap points #899

Open
marijnh opened this issue Mar 7, 2019 · 1 comment
Open

coordsAtPos is underspecified at line wrap points #899

marijnh opened this issue Mar 7, 2019 · 1 comment

Comments

@marijnh
Copy link
Member

marijnh commented Mar 7, 2019

If you call coordsAtPos on a position that lies exactly at the point where a line is wrapped, there's two rectangles that can reasonably be returned for that position—the end of the first line or the start of the second line. Fixing this would probably involve adding an argument to coordsAtPos to specific which side of the position you are interested in (after or before).

@marijnh
Copy link
Member Author

marijnh commented Mar 7, 2019

The same thing happens on bidi text 'jump' points where the direction of the text flips.

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

No branches or pull requests

1 participant