Fix fontSize performance

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