2019-08-12 14:30:28 +00:00
|
|
|
# Editor #
|
2019-06-20 15:29:10 +00:00
|
|
|
|
|
|
|
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
|
2019-08-12 14:39:30 +00:00
|
|
|
|
|
|
|
out/default/editor resources/text/english.txt
|
|
|
|
|
|
|
|
cat resources/text/*.txt > example.txt
|
|
|
|
out/default/editor example.txt
|