magic mathematic to calculate font-size