2021-12-22 22:45:06 +00:00
|
|
|
# COLRv1 Build
|
|
|
|
|
2021-12-22 23:43:23 +00:00
|
|
|
We assume the bitmap version with equivalent coverage exists and
|
|
|
|
contains emojicompat metadata.
|
2021-12-22 22:45:06 +00:00
|
|
|
|
|
|
|
## Build Steps
|
|
|
|
|
2022-07-21 13:42:55 +00:00
|
|
|
1. Check the list of sources in the config files is in sync with the current sources
|
|
|
|
|
|
|
|
```shell
|
|
|
|
# running from the noto-emoji repository root directory
|
|
|
|
python colrv1_generate_configs.py
|
|
|
|
git diff colrv1/*.toml
|
|
|
|
```
|
|
|
|
|
|
|
|
If configs are in sync, the `colrv1/*.toml` files should contain no diffs.
|
|
|
|
|
2021-12-22 22:45:06 +00:00
|
|
|
1. Compile the COLRv1 fonts
|
|
|
|
|
|
|
|
```shell
|
|
|
|
time nanoemoji *.toml
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Post-process COLRv1 font for Android
|
2021-12-22 23:43:23 +00:00
|
|
|
* At time of writing only the noflags version is for Android
|
|
|
|
|
|
|
|
```shell
|
|
|
|
# Assumed to be in a python3 environment with requirements.txt fulfilled
|
2021-12-24 01:44:08 +00:00
|
|
|
python colrv1_postproc.py colrv1/build/NotoColorEmoji-noflags.ttf \
|
2021-12-22 23:43:23 +00:00
|
|
|
PATH_TO/NotoColorEmojiCompat.ttf
|
2022-07-21 13:42:55 +00:00
|
|
|
```
|