skia2/modules
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
..
androidkit [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit [canvaskit] Add test to prove we have COLRv1 font support 2022-03-31 16:14:31 +00:00
particles [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
pathkit Bump karma from 6.3.14 to 6.3.16 in /modules/pathkit 2022-03-02 14:36:39 +00:00
skottie [skottie] Fix white-space/horizontal-alignment interactions 2022-04-01 18:54:14 +00:00
skparagraph Correct FontArguments.h location in build file. 2022-04-01 18:09:18 +00:00
skplaintexteditor Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
skresources [canvaskit] Add skottie to Bazel build 2022-02-04 19:18:27 +00:00
sksg [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
skshaper Cache hb_font instances for each typeface instead of hb_face 2022-03-28 21:19:36 +00:00
skunicode Avoid scanning for bidi levels if the paragraph is unidirectional 2022-01-06 17:39:50 +00:00
svg [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
BUILD.bazel [infra] Experiment generating BUILD.bazel files 2021-11-23 18:53:16 +00:00