skia2/resources/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
..
images
skottie_sample_1.json
skottie_sample_2.json
skottie_sample_multiframe.json
skottie_sample_search.json
skottie_sample_webfont.json [skottie] Add custom props rendering GM 2020-01-17 13:53:02 +00:00
skottie-3d-2planes.json [skottie] Add a couple more 3D tests 2019-11-04 19:08:43 +00:00
skottie-3d-3planes.json [skottie] Add a couple more 3D tests 2019-11-04 19:08:43 +00:00
skottie-3d-parenting-camera.json [skottie] 3D layer parenting refinements 2019-10-28 20:29:54 +00:00
skottie-3d-parenting-nocamera.json [skottie] 3D layer parenting refinements 2019-10-28 20:29:54 +00:00
skottie-3d-rotation-order.json
skottie-auto-orient-2.json [skottie] Auto-orient fixes 2020-07-08 13:52:27 +00:00
skottie-auto-orient.json [skottie] Layer auto-orient support 2020-05-25 16:19:23 +00:00
skottie-bezier-extranormal.json
skottie-blackandwhite-effect.json [skottie] Black & White effect 2020-10-27 17:03:40 +00:00
skottie-brightnesscontrast-legacy.json [skottie] Brightness and Contrast effect 2020-04-28 14:33:12 +00:00
skottie-brightnesscontrast.json [skottie] Contrast cleanup 2020-04-29 13:57:22 +00:00
skottie-buldge.json add skottie support for Bulge ADBE effect 2021-11-04 21:05:22 +00:00
skottie-camera-one-node.json [skottie] One-node camera support 2019-11-14 18:45:18 +00:00
skottie-camera-parent-1.json
skottie-camera-parent-2.json
skottie-camera-parent-3.json
skottie-camera-precomp.json [skottie] Fix precomposed camera sizing 2019-12-05 14:34:15 +00:00
skottie-camera-rotation.json
skottie-cctoner.json add CCToner support to skottie 2021-10-08 17:03:50 +00:00
skottie-chained-mattes.json [skottie] Cascading track matte support 2019-12-12 21:42:11 +00:00
skottie-corner-pin-effect.json [skottie] Corner pin effect 2020-04-05 16:47:06 +00:00
skottie-directional-blur.json expose directional blur to skottie 2021-10-20 19:41:30 +00:00
skottie-displacement-expand.json [skottie] Add support for displacement map output expansion 2021-08-12 17:43:14 +00:00
skottie-displacement-hsla.json [skottie] Initial Displacement Map effect 2020-09-11 14:15:44 +00:00
skottie-displacement-lfho.json [skottie] Initial Displacement Map effect 2020-09-11 14:15:44 +00:00
skottie-displacement-rgba.json [skottie] Initial Displacement Map effect 2020-09-11 14:15:44 +00:00
skottie-displacement-tiling.json [skottie] Initial Displacement Map effect 2020-09-11 14:15:44 +00:00
skottie-dropshadow-style.json [skottie] Initial drop shadow style support 2020-03-25 12:14:26 +00:00
skottie-effects-tranform.json
skottie-fill-effect.json [skottie] Cleanup: convert remaining effects to new adapter pattern 2020-01-30 15:30:08 +00:00
skottie-fractalnoise-basic.json [skottie] Fractal noise 'fractal type' support 2021-03-02 15:50:32 +00:00
skottie-fractalnoise-block.json [skottie] Initial fractal noise effect 2021-03-01 19:50:10 +00:00
skottie-fractalnoise-cycle.json [skottie] Fractal Noise: cycle evolution support 2021-10-18 15:11:06 +00:00
skottie-fractalnoise-linear.json [skottie] Initial fractal noise effect 2021-03-01 19:50:10 +00:00
skottie-fractalnoise-scalerotate.json [skottie] Fix Fractal Noise transform order 2021-10-08 13:59:01 +00:00
skottie-fractalnoise-softlinear.json [skottie] Initial fractal noise effect 2021-03-01 19:50:10 +00:00
skottie-fractalnoise-sphere.json [skottie] Fractal noise 'fractal type' support 2021-03-02 15:50:32 +00:00
skottie-fractalnoise-suboptions.json [skottie] Initial fractal noise effect 2021-03-01 19:50:10 +00:00
skottie-fractalnoise-turbulentbasic.json [skottie] Fractal noise 'fractal type' support 2021-03-02 15:50:32 +00:00
skottie-fractalnoise-turbulentsharp.json [skottie] Fractal noise 'fractal type' support 2021-03-02 15:50:32 +00:00
skottie-fractalnoise-turbulentsmooth.json [skottie] Fractal noise 'fractal type' support 2021-03-02 15:50:32 +00:00
skottie-glow-spread.json [skottie] Add spread/choke support for glow styles 2020-07-22 23:20:02 +00:00
skottie-gradient-opacity.json [skottie] Streamlined gradient stop merger 2019-11-05 19:44:11 +00:00
skottie-gradient-ramp.json
skottie-hidden-shapes-layers.json
skottie-huesaturation-animated.json [skottie] Improved Hue/Saturation effect 2021-09-27 13:30:48 +00:00
skottie-huesaturation-effect.json
skottie-inline-fonts.json [skottie] Add support for inline/data-uri fonts 2020-07-25 13:46:52 +00:00
skottie-innerglow-style.json [skottie] Initial outer/inner glow 2020-04-23 13:46:48 +00:00
skottie-innershadow-style.json [skottie] Initial inner shadow layer style support 2020-04-17 19:57:08 +00:00
skottie-invert-effect-yiq.json [skottie] Add support for invert/YIQ 2020-09-11 14:55:44 +00:00
skottie-invert-effect.json [skottie] Invert effect support 2019-12-11 23:07:04 +00:00
skottie-levels-effect.json
skottie-line-height.json
skottie-linear-wipe-effect.json
skottie-luma-matte.json
skottie-mask-feather.json
skottie-masking-opaque.json [skottie] More masking fixes 2020-07-21 13:58:45 +00:00
skottie-masking-translucent.json [skottie] More masking fixes 2020-07-21 13:58:45 +00:00
skottie-matte-blendmode.json [skottie] Fix layer blend modes under mattes 2019-10-29 01:49:26 +00:00
skottie-mergepaths-effect.json [skottie] Fix merge paths <-> paints interaction 2020-07-07 17:28:47 +00:00
skottie-motion-blur-mask.json
skottie-motion-blur-ph0.json
skottie-motion-blur-ph360.json
skottie-motion-blur-ph-360.json
skottie-motiontile-effect-phase.json [skottie] Fix MotionTile/opacity interaction 2021-09-27 18:04:20 +00:00
skottie-motiontile-effect.json [skottie] Fix MotionTile/opacity interaction 2021-09-27 18:04:20 +00:00
skottie-multi-range-selectors.json
skottie-nested-animation.json [skottie] Introduce an external layer API 2020-05-06 20:31:14 +00:00
skottie-offsetpaths-effect.json [skottie] Add shape layer Offset Paths support 2020-07-06 16:31:52 +00:00
skottie-outerglow-style.json [skottie] Initial outer/inner glow 2020-04-23 13:46:48 +00:00
skottie-phonehub-connecting_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-connecting.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-generic-error_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-generic-error.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-onboard_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-onboard.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-connecting_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-connecting.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-generic-error_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-generic-error.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-frills-connecting_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-frills-connecting.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-frills-generic-error_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-frills-generic-error.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-frills-onboard_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-frills-onboard.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-masks-connecting_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-masks-connecting.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-masks-onboard_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-no-masks-onboard.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-onboard_min.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-phonehub-svgo-onboard.json Reland "bench: Add PhoneHub assets to skottie-vs-png decode bench" 2021-09-23 17:40:09 +00:00
skottie-prolevels-effect.json [skottie] Add support for ADBE Pro Levels2 effect 2020-02-05 21:05:08 +00:00
skottie-puckerbloat-effect.json [skottie] Pucker & Bloat shape layer vector effect 2020-07-10 18:09:53 +00:00
skottie-radial-wipe-effect.json
skottie-repeater.json [skottie] Assorted shape repeater fixes 2020-08-26 13:24:53 +00:00
skottie-sharpen.json add sharpen effect support to skottie player 2021-12-14 19:44:26 +00:00
skottie-shift-channels-effect.json
skottie-sksl-color-filter.json add plumbing for color filter SkSL effect 2021-11-23 16:30:40 +00:00
skottie-sksl-effect.json plumb experimental SkSL layer effect in native Skottie player 2021-11-01 18:05:15 +00:00
skottie-sphere-controls.json [skottie] Sphere layer effect 2021-02-02 18:36:23 +00:00
skottie-sphere-effect.json [skottie] Sphere layer effect 2021-02-02 18:36:23 +00:00
skottie-sphere-lighting-types.json [skottie] Sphere effect lighting 2021-02-10 21:34:57 +00:00
skottie-sphere-lighting.json [skottie] Sphere effect lighting 2021-02-10 21:34:57 +00:00
skottie-text-allcaps.json Reland "[skottie] AllCaps support" 2021-09-03 14:43:59 +00:00
skottie-text-animator-1.json
skottie-text-animator-2.json
skottie-text-animator-3.json
skottie-text-animator-4.json
skottie-text-animator-5.json [skottie] Add text colorization GM 2020-12-10 17:10:48 +00:00
skottie-text-animator-6.json
skottie-text-animator-7.json
skottie-text-animator-8.json
skottie-text-animator-fillstrokeopacity.json [skottie] Text fill/stroke opacity animators 2021-05-13 20:03:52 +00:00
skottie-text-animator-linespacing.json [skottie] Add line-spacing animator support 2020-07-06 15:41:12 +00:00
skottie-text-animator-opacity.json [skottie] Fix text opacity animator semantics 2022-01-25 17:58:15 +00:00
skottie-text-baseline-shift.json [skottie] Add support for baseline shift 2020-08-21 20:05:10 +00:00
skottie-text-blur.json [skottie] Add support for text animator blur 2020-02-24 14:01:16 +00:00
skottie-text-fill-over-stroke.json [skottie] Fill-over-stroke support for text 2020-07-10 14:44:23 +00:00
skottie-text-grouping-alignment-2.json [skottie] Add another text grouping test 2020-03-03 15:17:20 +00:00
skottie-text-grouping-alignment.json [skottie] Text anchor point grouping support 2020-03-02 23:07:39 +00:00
skottie-text-perchar-3d.json [skottie] Initial support for per-character 3D 2020-02-21 21:14:02 +00:00
skottie-text-pointmode-downscaletofit.json [skottie] Auto-resize and VAlign support for point text 2020-10-02 19:33:35 +00:00
skottie-text-pointmode-scaletofit.json [skottie] Auto-resize and VAlign support for point text 2020-10-02 19:33:35 +00:00
skottie-text-resize-to-fit.json
skottie-text-scale-to-fit-maxlines.json Reland "[skottie] Max lines text auto-sizing constraint" 2022-03-10 02:22:09 +00:00
skottie-text-scale-to-fit-minmax.json [skottie] Add support for min/max text font size 2021-05-06 15:41:07 +00:00
skottie-text-scale-to-fit.json
skottie-text-strokejoin.json [skottie] Add support for text stroke line join 2022-03-11 15:17:16 +00:00
skottie-text-strokescale.json [skottie] scale stroke on text layers after shaping 2022-03-03 16:18:16 +00:00
skottie-text-valign-2.json
skottie-text-valign-bottom.json
skottie-text-valign-scaletofit.json [skottie] Separate text resize options 2020-01-29 00:09:42 +00:00
skottie-text-valign.json
skottie-text-vertical-clip.json [skottie] Clip overflowing paragraph lines 2020-02-20 18:35:15 +00:00
skottie-text-whitespace-align.json [skottie] Fix white-space/horizontal-alignment interactions 2022-04-01 18:54:14 +00:00
skottie-textpath-01.json [skottie] Initial text path support 2021-10-08 15:09:35 +00:00
skottie-textpath-02.json [skottie] Initial text path support 2021-10-08 15:09:35 +00:00
skottie-textpath-03.json [skottie] Initial text path support 2021-10-08 15:09:35 +00:00
skottie-textpath-04.json [skottie] Initial text path support 2021-10-08 15:09:35 +00:00
skottie-textpath-05.json [skottie] Initial text path support 2021-10-08 15:09:35 +00:00
skottie-textpath-paragraph-01.json [skottie] Path support for paragraph text 2021-10-11 15:26:00 +00:00
skottie-textpath-paragraph-02.json [skottie] Path support for paragraph text 2021-10-11 15:26:00 +00:00
skottie-textpath-paragraph-03.json [skottie] Path support for paragraph text 2021-10-11 15:26:00 +00:00
skottie-textpath-tracking.json Reland "[skottie] Fix text-on-path tracking" 2022-03-11 13:09:17 +00:00
skottie-threshold-compositing.json [skottie] Add threshold effect 2021-02-11 16:35:32 +00:00
skottie-threshold-effect.json [skottie] Add threshold effect 2021-02-11 16:35:32 +00:00
skottie-time-reverse.json [skottie] Fix handling of time-reversed precomp layers 2020-02-28 19:42:51 +00:00
skottie-transform-effect.json
skottie-transform-skew.json [skottie] Implement skew & skew axis support 2021-02-08 22:24:38 +00:00
skottie-trimpath-fill.json [SkTrimPathEffect] Preserve wrap-around continuity 2020-04-07 14:40:17 +00:00
skottie-trimpath-modes.json [skottie] Fix trim path mode interpretation 2019-11-05 18:31:24 +00:00
skottie-tritone-effect.json [skottie] Cleanup: convert remaining effects to new adapter pattern 2020-01-30 15:30:08 +00:00
skottie-venetianblinds-effect.json