skia2/resources/skottie
Florin Malita 4f6eb15178 [skottie] Add resize-to-fit text alignment extension
Introduce a new SkottieShaper VAlign option (kResizeToFit), to scale the text
size for the best box fit.

The basic idea is to perform a binary search on the font size, until
the shaped text fits snuggly within the specified box.  The search is
focused on height, as horizontal fitting is assumed to be handled in
SkShaper.

Change-Id: I56269e02dda7a34e4ef3b79c205ea651b909f370
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/212962
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2019-05-09 16:03:39 +00:00
..
skottie_sample_1.json [skottie] GM exercising external font loading 2018-09-20 19:05:35 +00:00
skottie_sample_2.json [skottie] GM exercising external font loading 2018-09-20 19:05:35 +00:00
skottie_sample_multiframe.json [skottie] Multi-frame image support 2018-10-03 19:02:35 +00:00
skottie_sample_nested.json [skottie] GM exercising external font loading 2018-09-20 19:05:35 +00:00
skottie_sample_search.json [skottie] Add a custom property manager util class 2018-11-28 17:12:07 +00:00
skottie_sample_webfont.json [skottie] GM exercising external font loading 2018-09-20 19:05:35 +00:00
skottie-3d-rotation-order.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-bezier-extranormal.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-camera-parent-1.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-camera-parent-2.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-camera-parent-3.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-camera-rotation.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-gradient-ramp.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-hidden-shapes-layers.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-levels-effect.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-line-height.json [skottie] Text line height support 2019-05-08 19:27:52 +00:00
skottie-mask-feather.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00
skottie-text-resize-to-fit.json [skottie] Add resize-to-fit text alignment extension 2019-05-09 16:03:39 +00:00
skottie-text-valign.json [skottie] Relocate "GMs" to resources/ 2019-05-03 16:14:46 +00:00