0baacb50bc
The 'lang' was never stored or used, so this makes no current practical difference. The original intent was to be able to specify a language so that it could be emitted as a 'Lang' override in the 'ActualText' when generating a PDF. However, due to the way 'ActualText' is generally used this would be impractical. If there is ever a desire to mark up sections of the PDF with a specific language it would be better handled in a different way. Change-Id: Id63596190235fc45ce17249b9b578b6f9b838b2b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/375060 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> |
||
---|---|---|
.. | ||
app | ||
include | ||
src | ||
BUILD.gn | ||
README.md |
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 resources/text/english.txt
cat resources/text/*.txt > example.txt
out/default/editor example.txt