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

[Core] Convert measureText pointer to value string slice #214

Merged
merged 2 commits into from
Jan 19, 2025

Conversation

nicbarker
Copy link
Owner

This PR fixes up a small historical issue: the text passed to the user provided MeasureText function was provided as a pointer rather than value copy, as well as providing a base pointer to the original string that the slice is derived from.
This is to accommodate user-side string measurement caches that rely on knowing the original string the slice is based on, as mentioned in #180.

@nicbarker nicbarker force-pushed the 013-measure-text-string-slice branch from 3653b21 to 2776965 Compare January 19, 2025 22:13
@nicbarker nicbarker merged commit 326325f into main Jan 19, 2025
3 checks passed
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.

1 participant