Fix fontSize performance

Only call expensive getBBox method if needed.
This reduces execution time for the rails-startup example from
1m120s to 6.5s (measured in Safari 7.01).