e695e53f1c
Range selector's "Based On" property controls how range indices map to glyphs: characters, characters-excluding-spaces, words, lines. To support this feature: - update SkottieShaper to track domain-relevant info per fragment (fLineIndex, fIsWhitespace) - update TextAdapter to build domain maps (domain index -> fragment span) - update RangeSelector to run its range indices through a domain map, if present. Change-Id: I80e713f6beaa2578aa0eae1d1ddae8e1e47d8d10 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/219859 Commit-Queue: Florin Malita <fmalita@chromium.org> Reviewed-by: Ben Wagner <bungeman@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.