Added smart detection for the font size

Added a simple logic to determine the font size, while the old styles using "compressor", the new logic uses width divided by total character divided by compressor (expected paragraph line in the box) or height divided by the compressor - whichever is smallest will be used.