blob: f07d958786f9bc11dea6f7baae81deb4a877b890 [file] [log] [blame] [view]
Xiaoming Shi73dfa202020-03-12 11:31:35 -07001# Editor #
2
3This is an experimental Editor layer that abstracts out SkShaper text layeout
4for easy embedding into an application. The Editor layer is agnostic about the
5operating 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
26The Application layer must interact with the:
27
28 * Windowing system
29 * File system
30 * Clipboard
31 * Keyboard/mouse input.
32
33Try 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