Go to file
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
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Reland "Reland "SkSurface asynchronous read APIs allow client to extend pixel lifetime"" 2019-10-03 19:14:22 +00:00
bin roll GN 2019-09-26 20:34:17 +00:00
build_overrides Update to Dawn ToT. 2019-07-22 16:20:36 +00:00
dm Reland "Reland "SkSurface asynchronous read APIs allow client to extend pixel lifetime"" 2019-10-03 19:14:22 +00:00
docker Fix HOME directory in Docker containers built under cloudbuild. 2019-09-26 02:31:35 +00:00
docs/examples make rectcontour and nestedrects private 2019-09-13 00:17:49 +00:00
example Revert "add guard to switch to SkPathTypes" 2019-09-14 19:13:44 +00:00
experimental experimental/minimal_mtl_app: more cleanup 2019-10-01 14:40:55 +00:00
fuzz Reland "Reland "SkSurface asynchronous read APIs allow client to extend pixel lifetime"" 2019-10-03 19:14:22 +00:00
gm Clarify that the OpArgs' outputSwizzle comes from its GrRenderTargetProxy 2019-10-04 18:03:32 +00:00
gn Define coord space tagged geometry for image filters v2. 2019-10-04 16:40:00 +00:00
include Export SkTextBlob::Iter 2019-10-07 13:18:27 +00:00
infra Roll recipe dependencies (trivial). 2019-10-07 04:13:48 +00:00
modules [skottie] Horizontal-constraint for Shaper *ToFit alignment modes 2019-10-07 14:58:48 +00:00
platform_tools android_gdbserver: Don't fail when trying to locate nonexistent files 2019-09-16 16:28:33 +00:00
resources Particles: New confetti effect, minor tweaks elsewhere 2019-10-07 14:06:56 +00:00
samplecode Clarify that the OpArgs' outputSwizzle comes from its GrRenderTargetProxy 2019-10-04 18:03:32 +00:00
site Move sheriff handoff doc notes higher up 2019-10-04 18:08:38 +00:00
specs [img-decode] Start on proposed new spec 2019-05-06 17:39:19 +00:00
src Remove kLinesAdjacency and add kPath from/to GrPrimitiveType 2019-10-04 19:29:23 +00:00
tests Clarify that the OpArgs' outputSwizzle comes from its GrRenderTargetProxy 2019-10-04 18:03:32 +00:00
third_party Roll third_party/externals/angle2 2328d65ab30d..5549ef0451f9 (8 commits) 2019-10-04 22:30:33 +00:00
tools Particles: New confetti effect, minor tweaks elsewhere 2019-10-07 14:06:56 +00:00
.clang-format restore .clang-format 2019-03-21 15:52:32 +00:00
.clang-tidy add google-build-namespaces to clang-tidy checks 2018-12-12 16:33:59 +00:00
.gitignore clean up some .gitignores 2019-05-15 19:55:45 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fix Metal includes breaking macOS local builds 2019-07-08 14:02:47 +00:00
BUILD.gn speculitive fix for flutter roll 2019-10-03 20:15:42 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 5549ef0451f9..5e9d4ee99ea1 (14 commits) 2019-10-07 05:55:28 +00:00
go.mod Update go deps 2019-10-07 14:50:08 +00:00
go.sum Update go deps 2019-10-07 14:50:08 +00:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py rewrite_includes.py: make it work on windows 2019-08-05 16:14:35 +00:00
public.bzl remove SkPicture_none.cpp 2019-08-16 14:52:25 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
RELEASE_NOTES.txt Simple iterator for textblobs 2019-10-04 14:44:19 +00:00
whitespace.txt Whitespace test 2019-05-18 13:05:29 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.