skia2/modules
Florin Malita 71bcfef9f7 [skottie] Auto-resize and VAlign support for point text
Auto-resizing and vertical alignment require a non-empty text box.  But
currently, the presence of the text box is used to discriminate between
point text [1] and paragraph text [2].

In order to support auto-scaling and v-alignment for point text, we must
decouple the text mode encoding from the text box:

  * introduce and explicit LinebreakPolicy property for skottie::Shaper,
    and use it to control line breaking instead of the text box presence
  * by default, the line breaking policy is initialized per existing
    AE/BM semantics: non-empty text box -> paragraph mode,
    empty box -> point mode
  * the policy can be overridden via the PropertyObserver APIs to enable
    point mode auto-resizing and vertical alignment

[1] https://helpx.adobe.com/after-effects/using/creating-editing-text-layers.html#enter_point_text
[2] https://helpx.adobe.com/after-effects/using/creating-editing-text-layers.html#enter_paragraph_text

Change-Id: I007144283a31a2faa579d7eec82af72af3d540cb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/321788
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Florin Malita <fmalita@google.com>
2020-10-02 19:33:35 +00:00
..
audioplayer SFML [1] backed for SkAudioPlayer/Linux 2020-08-18 17:58:55 +00:00
canvaskit [canvaskit] Fix computeTightBounds 2020-10-02 14:06:24 +00:00
particles Remove unsafe compiler methods related to external values 2020-09-24 14:12:08 +00:00
pathkit [canvaskit,pathkit] Update to emsdk 2.0 2020-08-20 14:55:50 +00:00
skottie [skottie] Auto-resize and VAlign support for point text 2020-10-02 19:33:35 +00:00
skparagraph Add an API for clearing the SkParagraph font and paragraph caches 2020-09-29 19:56:08 +00:00
skplaintexteditor Enable ClangTidy check readability-const-return-type. 2020-08-07 17:42:38 +00:00
skresources [skottie] Initial audio layer plumbing 2020-08-12 13:03:16 +00:00
sksg [sksg] Fix uninitialized DashEffect attribute 2020-10-01 20:25:27 +00:00
skshaper remove SkMakeSpan use ctor parameter deduction 2020-10-02 01:41:03 +00:00