f976e97a97
Currently we only constrain vertically, assuming shaped lines don't overflow horizontally. This is not true for very long words. Update kVisualResizeToFit and kVisualDownscaleToFit to constrain in both dimensions. Also drop the early exit condition because a) it makes less sense when checking in 2 dimensions (there are multiple answers which fit snugly in one dimension, but we're ultimately selecting for the largest font size) b) it probably doesn't trigger much in practice Existing tests cover the change in behavior. Bug: skia:9471 Change-Id: I4e53a51500b02ba7db26dad249458bcf491b088a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/246305 Reviewed-by: Avinash Parchuri <aparchur@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> |
||
---|---|---|
.. | ||
fuzz | ||
gm | ||
include | ||
src | ||
utils | ||
BUILD.gn | ||
skottie.gni |