Can OCR be used to get text font size?

Good afternoon!

Is there a way to get text size using OCR? I am working on a project that scans documents and feeds data regarding the document – text, text position, color – to a machine learning model.

Is there a way to use OCR to get text size? I would just need something relative, such that a small font size would be marked 1, or a large font size might be marked 5.

Thanks for your help!

Bump.