I have been researching and working on a text stack good part of this spring.
It is called Skribidi, and it can do bidirectional text layout, rendering and editing.
It has fairly lean dependencies and is MIT licensed.
https://github.com/memononen/Skribidi
It kinda started as a self help project trying to deal with weltschmerz and burnout. I needed something the felt even mildly meaningful and complex enough that I could hyper focus on details.
Any feedback welcome!