skia2/modules/skottie
Florin Malita f976e97a97 [skottie] Horizontal-constraint for Shaper *ToFit alignment modes
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>
2019-10-07 14:58:48 +00:00
..
fuzz rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
gm [skottie] Pass asset IDs to ResourceProvider::loadImageAsset 2019-07-17 01:08:05 +00:00
include [skottie] Clean up TextAdapter 2019-09-03 15:29:36 +00:00
src [skottie] Horizontal-constraint for Shaper *ToFit alignment modes 2019-10-07 14:58:48 +00:00
utils [skottie] Multi-threaded skottie_tool 2019-09-24 18:29:09 +00:00
BUILD.gn [skottie,skshaper] Plumb an optional SkFontMgr in SkShaper/SkottieShaper 2019-07-26 19:34:48 +00:00
skottie.gni [skottie] Initial Hue/Saturate effect support 2019-08-02 18:04:14 +00:00