skia2/modules
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
..
canvaskit [canvaskit] Speculative fix for external wasm library 2019-10-03 19:01:27 +00:00
particles Change ByteCode and ByteCodeFunction to classes 2019-09-30 18:02:24 +00:00
pathkit Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
skottie [skottie] Horizontal-constraint for Shaper *ToFit alignment modes 2019-10-07 14:58:48 +00:00
skparagraph [canvaskit] Initial addition of SkParagraph 2019-10-03 18:04:55 +00:00
skplaintexteditor tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
sksg [skottie] Fix motion blur asserts 2019-09-23 17:34:42 +00:00
skshaper Allow better font fallback. 2019-10-02 22:19:13 +00:00