4f6eb15178
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> |
||
---|---|---|
.. | ||
skottie_sample_1.json | ||
skottie_sample_2.json | ||
skottie_sample_multiframe.json | ||
skottie_sample_nested.json | ||
skottie_sample_search.json | ||
skottie_sample_webfont.json | ||
skottie-3d-rotation-order.json | ||
skottie-bezier-extranormal.json | ||
skottie-camera-parent-1.json | ||
skottie-camera-parent-2.json | ||
skottie-camera-parent-3.json | ||
skottie-camera-rotation.json | ||
skottie-gradient-ramp.json | ||
skottie-hidden-shapes-layers.json | ||
skottie-levels-effect.json | ||
skottie-line-height.json | ||
skottie-mask-feather.json | ||
skottie-text-resize-to-fit.json | ||
skottie-text-valign.json |