So I am making a software with python, it includes merging subtitles with video, I am using ffmpeg and .ass subtiles, I add fontsize and position in subtitles template, but sometimes subtitles are bigger than video dimensions, so I wanted to know if before merging subtitles to video if i can calculate subtitle width and height with chosen fontsize and fontfamily.