Hey all!
As the title says, I've run into an issue in my game and I'm not quite sure how to proceed, or if there is an easy solution adept godot users are aware of.
The problem is thus, I have multiple RichTextLabels that make up a book, and one relatively large string that makes up the contents of the pages.
What I would like to do, is dynamically split the string so that once RichTextLabel box #1 has reached it's maximum capacity (given here as 13 lines) we split the string there, and then push the rest to RichTextLabel box#2, and continue that process for as long as there is text.
Safe to say my plan, thus far, has NOT worked out so well!
The number of characters that can fit into a Word_Smart Autowrap text box can vary, the RichTextLabel function "get_visible_line_count" doesn't seem super reliable, and even when it does work I end up with an int which is what it says on the tin, but I don't know if there's any way to interact with said line count, such as a "split string at x lines" even if I could get it to work reliably.

My plan since then has been a "simple" approach as I can see it, set a constant for the max number of characters, read the string from that point and walk backwards until I reach a space character (" ") and split there. Progress is slow, on general account of myself not being adept, but if any of ye wandering souls new of a better approach to this or something Godot already has that does this better, I'd love to hear it!