skia2/modules/skottie
Florin Malita de6af36e6e [skottie] Fix white-space/horizontal-alignment interactions
AE alignment semantics:

  - leading white-space counts (i.e. "pushes" the line to the right
    in left/center alignment mode)
  - trailing white-space is ignored (does not push the line to the left
    in center/right alignment mode)

Skottie currently always takes white-space into account.  This yields
incorrect center/right alignment not just in the presence of explicit
trailing WS, but also due to residual WS from paragraph line breaks.

To fix, detect trailing WS for each committed line, and adjust glyph
positions to compensate.

Change-Id: Id8589cb30f743f21d77961c0eb4fa20a97e5f13c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/526457
Reviewed-by: Jorge Betancourt <jmbetancourt@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2022-04-01 18:54:14 +00:00
..
fuzz [canvaskit] Add skottie to Bazel build 2022-02-04 19:18:27 +00:00
gm [canvaskit] Add skottie to Bazel build 2022-02-04 19:18:27 +00:00
include [includes] Enforce IWYU on sksl code 2022-03-21 12:43:02 +00:00
src [skottie] Fix white-space/horizontal-alignment interactions 2022-04-01 18:54:14 +00:00
tests [bazel] Use toolchain features to opt files into being IWYU compliant. 2022-03-16 13:09:46 +00:00
utils [skottie] Nested animation fixes 2022-03-28 18:17:09 +00:00
BUILD.bazel [canvaskit] Add skottie to Bazel build 2022-02-04 19:18:27 +00:00
BUILD.gn Reland "[skottie] AllCaps support" 2021-09-03 14:43:59 +00:00
skottie.gni add sharpen effect support to skottie player 2021-12-14 19:44:26 +00:00