skia2/experimental/canvaskit/fonts
Kevin Lubick ddd0a333f4 [canvaskit] Allow users to load their own fonts
Instead of using the test font(s), now ship with a small
(100k) Monospace font. This can be disabled by:
    compile.sh no_font ...

This saves about 350k (164k gzipped) in binary size.

Bug: skia:
Change-Id: I195e3b35bea86d0f096066c1c6a44a4b602571f3
Reviewed-on: https://skia-review.googlesource.com/c/176580
Reviewed-by: Ben Wagner <bungeman@google.com>
2018-12-12 15:40:08 +00:00
..
NotoMono-Regular.ttf [canvaskit] Allow users to load their own fonts 2018-12-12 15:40:08 +00:00
README.md [canvaskit] Allow users to load their own fonts 2018-12-12 15:40:08 +00:00

To generate the files in here:

python tools/embed_resources.py --name SK_EMBEDDED_FONTS --input ~/Downloads/NotoMono-Regular.ttf --output experimental/canvaskit/NotoMono-Regular.ttf.cpp --align 4