I know how to obtain the dimensions of the text using
cv::getTextSize(), but this only works correctly for non-antialiased linetypes (default=8 and 4).
CV_AA (linetype=16) the text is partially outside the size defined by
Edit: Should I file an issue for this on GitHub? For now I've decided to not use a anti-aliased linetype.