This is a script that calculate the size of the font of the different lines in order to get a compact box.