memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.15k stars 770 forks source link

[nvgTextBounds] string ending with space does not return expected bounds #660

Open z64rankaisija opened 1 year ago

z64rankaisija commented 1 year ago

Having a string like "hello " would not give actual bounds of the text. I personally would need this as I'm workin on my own implementation of text field where I display the current selection as a rectangle.

fwsGonzo commented 5 months ago

I just had this happen to me too.

mulle-nat commented 5 months ago

636 is IMO the same and contains a solution