Calculating letter spacing