You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it would be possible to introduce features into ThorVG that would allow for an efficient implementation of a text field.
What I miss is support for scenarios:
I have the coordinates of the mouse cursor, I need to know the position of the text cursor (character index)
I have the position of the text cursor, I need its coordinates
These cases can be reduced to:
give me the maximum character index for a width limit (for given text in given style)
give me the text width for a substring
I think this requires adding mechanisms to measure text without having to render it. Would there be a place for such functionality in the library? Or maybe it is possible to use existing mechanisms to achieve these goals?
The text was updated successfully, but these errors were encountered:
I wonder if it would be possible to introduce features into ThorVG that would allow for an efficient implementation of a text field.
What I miss is support for scenarios:
These cases can be reduced to:
I think this requires adding mechanisms to measure text without having to render it. Would there be a place for such functionality in the library? Or maybe it is possible to use existing mechanisms to achieve these goals?
The text was updated successfully, but these errors were encountered: