marseymoji/BUILD.md

48 lines
1.2 KiB
Markdown
Raw Normal View History

2023-07-15 19:39:47 +00:00
# Marsey instructions
Run the script: ./marsey/marsey_replacer.sh
Then follow the build instructions for CBDT.
Despite the instructions stating it would take about 3 minutes, it took about 30 minutes on my computer. Use this snippet to track progress:
`echo "$(( 100 * $(ls build/compressed_pngs|wc -l) / $(ls build/quantized_pngs |wc -l) ))"'%'`
2022-09-06 18:33:22 +00:00
# Build instructions
2023-07-15 19:39:47 +00:00
---
2022-09-06 18:33:22 +00:00
Typically build the CBDT then the COLRv1 as COLRv1 copies some information from CBDT.
## CBDT
```bash
rm -rf venv # in case you have an old borked venv!
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python size_check.py
2022-09-06 18:33:22 +00:00
rm -rf build/ && time make -j 48
# Should take 2-3 minutes to create noto-emoji/NotoColorEmoji.ttf
mv *.ttf fonts/
```
## COLRv1
```bash
# If you are updating to a new Unicode rev, update configs
(cd colrv1 && python colrv1_generate_configs.py)
git diff colrv1/*.toml
# Compile the fonts
(cd colrv1 && rm -rf build/ && time nanoemoji *.toml)
cp colrv1/build/NotoColorEmoji.ttf fonts/Noto-COLRv1.ttf
cp colrv1/build/NotoColorEmoji-noflags.ttf fonts/Noto-COLRv1-noflags.ttf
# Post-process them
python colrv1_postproc.py
```
## Emojicompat
2023-07-15 19:39:47 +00:00
TODO detailed instructions