I am in the process of doing some very similar. I was pointed at the blf
module and in particular at blf.dimensions
by @testure:
However, I face the problem of not being able to determine the fontid of the text strip’s font:
What I want to do works great if I figure out the fontid manually, or guess at the offset. If you’re doing this only for yourself and not looking for a generic solution you can use this method (blf.size()
followed by blf.dimensions()
) for the font you are using for your subtitles. Hope this keeps you moving!