de6af36e6e
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> |
||
---|---|---|
.. | ||
androidkit | ||
audioplayer | ||
canvaskit | ||
particles | ||
pathkit | ||
skottie | ||
skparagraph | ||
skplaintexteditor | ||
skresources | ||
sksg | ||
skshaper | ||
skunicode | ||
svg | ||
BUILD.bazel |