Feedback
Graphics.TextWidth now includes trailing whitespace
- Status
- Fixed
- Fixed in
- v26.8.4
- Source discussion
- https://forum.objo.dev/d/805-graphicstextheight
- Last updated
- 2026-08-17
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Graphics.TextWidth excludes trailing spaces from its result, so text measurement does not represent the complete string. This makes caret positioning and other canvas-based text layout incorrect whenever the measured prefix ends in whitespace. Graphics.TextWidth should include leading, trailing, and all-whitespace strings while preserving the current font and character-spacing behaviour.