• Home
Name Date Size #Lines LOC

..--

BUILD.gnD12-May-20241 KiB4842

README.mdD12-May-20241.1 KiB4334

editor.cppD12-May-202419.9 KiB513459

editor.hD12-May-20244.9 KiB145105

editor_application.cppD12-May-202414.9 KiB389342

shape.cppD12-May-202410.7 KiB295255

shape.hD12-May-2024645 2718

stringslice.cppD12-May-20242.3 KiB8369

stringslice.hD12-May-20241.6 KiB4732

stringview.hD12-May-2024371 2012

word_boundaries.cppD12-May-20241.5 KiB5142

word_boundaries.hD12-May-2024460 136

README.md

1# 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
43