skia2/modules
Florin Malita 735ac97eb4 [svg] Relative postioning support for text
Introduce support for relative position adjustments [1]:

  - plumb dx, dy attributes
  - extend ScopedPosResolver to also handle the new attributes
  - introduce ShapeBuffer to store both utf8 text and position
    adjustments for shaping (replaces prev 'filtered' array).
  - position adjustments are cumulative (relative adjustments affect
    all following characters)
  - utf8 encoding is variable length; for simplicity, ensure that the
    pos adjustment array and the utf8 array are always the same size by
    repeating the pos adjustment times number of utf8 bytes
  - introduce a temporary buffer for retrieving utf8 cluster information
    from SkShaper
  - post-shaping, use the utf8 cluster info to map back to character
    indices and apply the associated position adjutment

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

Bug: skia:10840
Change-Id: Ia9f227f91723400711ff2b5d260976290da1e2e5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/346636
Commit-Queue: Florin Malita <fmalita@google.com>
Reviewed-by: Tyler Denniston <tdenniston@google.com>
2020-12-22 19:19:12 +00:00
..
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit SkAnimatedImage: Always respect exif orientation 2020-12-21 16:39:12 +00:00
particles Starting to hide setFilterQuality 2020-12-19 20:56:50 +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 Precompute the size of fClusters in ParagraphImpl::buildClusterTable 2020-12-17 20:02:15 +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] Relative postioning support for text 2020-12-22 19:19:12 +00:00