I hope you don't mind me sharing a quick video on rendering TTF fonts using SDL2 on the Raspberry Pi Zero written in C++.
The video depicts a 3D scene with a passage of text containing 5000 formatted characters (not 9000 as I say in the vid!) that are dynamically rendered at 1080p on the Zero. The text is continually reformatted in real-time with various styles; italic, header sizes, subscript/superscript and left justification based on HTML tags.
Here's the link https://youtu.be/7OotDmBsVz4
Note: I will be releasing the graphics engine/library in due course once I've taken it through it's paces developing various game and applications (there are other vids that demo these on my channel).
I hope you are inspired by what can be done on the Zero in C++