Calculate typographical ratios