| 1 |
# Editor # |
| 2 |
|
| 3 |
This is an experimental Editor layer that abstracts out SkShaper text layeout |
| 4 |
for easy embedding into an application. The Editor layer is agnostic about the |
| 5 |
operating system. |
| 6 |
|
| 7 |
+--------------------------------+ |
| 8 |
|Application | |
| 9 |
+-+----+-------------------------+ |
| 10 |
| | |
| 11 |
| | |
| 12 |
| +-v-------------------------+ |
| 13 |
| |Editor | |
| 14 |
| +-+----+--------------------+ |
| 15 |
| | | |
| 16 |
| | | |
| 17 |
| | +-v--------------------+ |
| 18 |
| | |SkShaper | |
| 19 |
| | +-+--------+-----------+ |
| 20 |
| | | | |
| 21 |
| | | | |
| 22 |
+-v----v----v--+ +-v-----------+ |
| 23 |
|Skia | |HarfBuzz, ICU| |
| 24 |
+--------------+ +-------------+ |
| 25 |
|
| 26 |
The Application layer must interact with the: |
| 27 |
|
| 28 |
* Windowing system |
| 29 |
* File system |
| 30 |
* Clipboard |
| 31 |
* Keyboard/mouse input. |
| 32 |
|
| 33 |
Try it out: |
| 34 |
|
| 35 |
tools/git-sync-deps |
| 36 |
bin/gn gen out/default |
| 37 |
ninja -C out/default editor |
| 38 |
|
| 39 |
out/default/editor resources/text/english.txt |
| 40 |
|
| 41 |
cat resources/text/*.txt > example.txt |
| 42 |
out/default/editor example.txt |