Why the 7 maxTries? Is this something experience told you while testing all currently shipped locales? If so (and even if not so :) ) could you add a respective comment for later if someone is wondering about it?
Why the 7 maxTries? Is this something experience told you while testing all currently shipped locales? If so (and even if not so :) ) could you add a respective comment for later if someone is wondering about it?
The comment is just before "let maxTries = 7" and it reads:
// Reduce font to 90% of previous size, repeating the process up to 7// times. This allows for a maximum reduction to just less than 50% of// the original size.