<div dir="ltr">I am using harfbuzz + cairo + freetype2 to perform text rendering in my project, and I haven't been able to find any functions to help me figure out how large of a surface I will need to create in order to fit all the text. I ended up writing my own function, but it always creates too small of a surface and I'm not sure how to do it correctly.<br>
</div>