Not sure if this will help: https://bugs.freepascal.org/view.php?id=30395
Dont recall why it was not included, but IIRC there was a reason....
Didn't found a way of implementing WordWrapping without disturbing the actual string buffer, which is the way I think should be done.