71bcfef9f7
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> |
||
---|---|---|
.. | ||
android_fonts | ||
diff_canvas_traces | ||
empty_images | ||
fonts | ||
icc_profiles | ||
images | ||
invalid_images | ||
nima | ||
particles | ||
skottie | ||
text | ||
Cowboy.svg | ||
crbug769134.fil | ||
nov-talk-sequence.txt | ||
pdf_command_stream.txt | ||
README | ||
SkVMTest.expected |
The resources directory includes some third party content used by Skia. Licenses for that code are included in this file. Openclipart Openclipart uses the Creative Commons Zero 1.0 Public Domain License every time an artist uploads a piece of clipart to Openclipart to make it clear the artist is releasing the creative work for anyone to use for any reason, even commercially. This act of "sharing" is the foundation Openclipart is based upon. More details on the license can be found at https://creativecommons.org/publicdomain/zero/1.0/. LGPL or compatible (as implied by inclusion in KDE SVN) http://websvn.kde.org/trunk/tests/ksvgtests/custom/cowboy.svg