ded867f126
also simplify handling of implicit position at end of line. also simplfy move() operation. Change-Id: Ic242b5413c65295b1ac1bf7aa3a4948c3ed1c742 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/233303 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
BUILD.gn | ||
editor_application.cpp | ||
editor.cpp | ||
editor.h | ||
README.md | ||
shape.cpp | ||
shape.h | ||
stringslice.cpp | ||
stringslice.h | ||
stringview.h | ||
word_boundaries.cpp | ||
word_boundaries.h |
#Editor#
This is an experimental Editor layer that abstracts out SkShaper text layeout for easy embedding into an application. The Editor layer is agnostic about the operating system.
+--------------------------------+
|Application |
+-+----+-------------------------+
| |
| |
| +-v-------------------------+
| |Editor |
| +-+----+--------------------+
| | |
| | |
| | +-v--------------------+
| | |SkShaper |
| | +-+--------+-----------+
| | | |
| | | |
+-v----v----v--+ +-v-----------+
|Skia | |HarfBuzz, ICU|
+--------------+ +-------------+
The Application layer must interact with the:
- Windowing system
- File system
- Clipboard
- Keyboard/mouse input.
Try it out:
tools/git-sync-deps
bin/gn gen out/default
ninja -C out/default editor
out/default/editor whitespace.txt