skia2/modules
Florin Malita febb1b87a5 [svg] Absolute positioning support for text
Implement per-character position attribute lookup based on [1]:

  - convert "x" and "y" attributes to arrays
  - introduce ScopedPosResolver to handle positioning attribute lookup
    and fallback
  - push a new resolver every time we enter a text positioning element
    scope (<text>, <tspan>, etc).
  - flush/reposition a new text chunk every time we encounter explicit
    absolute positions

The position attribute fallback logic is complex enough to warrant a
unit test.

[1] https://www.w3.org/TR/SVG11/text.html#TSpanElementXAttribute

Bug: skia:10840
Change-Id: I66c478fea4a179fdb8b1a6a9ff00c4dd9509f8d2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345161
Commit-Queue: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Tyler Denniston <tdenniston@google.com>
2020-12-17 17:31:25 +00:00
..
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit [canvaskit] Update to 0.22.0 2020-12-17 15:10:15 +00:00
particles Stop cloning builtin functions 2020-11-20 15:02:54 +00:00
pathkit [canvaskit] Update to emsdk 2.0.10 2020-12-14 15:27:28 +00:00
skottie [skottie] Add text colorization GM 2020-12-10 17:10:48 +00:00
skparagraph Reland "Cache text blobs computed by TextLine::paintText" 2020-12-10 19:03:19 +00:00
skplaintexteditor Enable ClangTidy check readability-const-return-type. 2020-08-07 17:42:38 +00:00
skresources Reland "[skottie] Add image sampling and transform options" 2020-12-03 19:21:57 +00:00
sksg Reland "[skottie] Add image sampling and transform options" 2020-12-03 19:21:57 +00:00
skshaper Remove static allocattion of UText 2020-12-17 15:06:15 +00:00
svg [svg] Absolute positioning support for text 2020-12-17 17:31:25 +00:00