[TextBlob] Fall back to TightRunBounds when the font bounds are empty
authorfmalita <fmalita@chromium.org>
Mon, 10 Aug 2015 16:24:31 +0000 (09:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 10 Aug 2015 16:24:31 +0000 (09:24 -0700)
commitd6b99cc6b84b3ec864221cbe9945d203bd9eb072
tree8745b53beb7060133cb1f4050087536d6efc5b08
parent9ff6425ce4a8deeb23b1c706b340d7d4e09f3f9b
[TextBlob] Fall back to TightRunBounds when the font bounds are empty

Empty font bounds are likely an indication of a font bug.  As a best
effort, we can use TightRunBounds in this easily detectable case.

BUG=507022
R=reed@google.com,bungeman@google.com

Review URL: https://codereview.chromium.org/1284693002
src/core/SkTextBlob.cpp