skia2/modules
Florin Malita 9a9e723f02 [skottie] Add support for (non-standard) v-centered text
Introduce a Skottie JSON extension for controlling vertical text
alignment ("sk_vj"), with a single public value for now: 1 (centered).

Refactor SkottieShaper to handle vertical adjustments based on a VAlign
enum:

  kTop         - the topmost line is ascent-aligned with the box top
                 (AE text-box behavior)
  kTopBaseline - the topmost line is baseline-aligned with the top box
                 (AE text-point behavior)
  kCenter      - the text center is aligned with the box center
                 ("sk_vj": 1, Skottie extension)

Also externalize the vertical adjustment as a text blob offset (instead
of baking into blob glyph offsets).

Change-Id: I29a414d4c6ccfafc534ca7b61f48ef96d8cff86e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/205590
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
2019-04-03 13:06:14 +00:00
..
canvaskit Move SkTileModes to top level 2019-04-03 00:18:35 +00:00
particles Remove SkScalarSinCos 2019-04-02 15:46:57 +00:00
pathkit [pathkit/canvaskit] Address race when uploading results 2019-03-12 21:45:04 +00:00
skottie [skottie] Add support for (non-standard) v-centered text 2019-04-03 13:06:14 +00:00
sksg [skottie] Initial gradient ramp effect support 2019-04-02 14:24:56 +00:00
skshaper Clean up shaper handler. 2019-04-02 14:56:26 +00:00