1diff --git a/helpers/generate-fonts-runner.sh b/helpers/generate-fonts-runner.sh
2index 21267e50f..873b5c664 100755
3--- a/helpers/generate-fonts-runner.sh
4+++ b/helpers/generate-fonts-runner.sh
5@@ -25,10 +25,10 @@ mkdir -p "$build_dir"
6
7 # Change these to enable/disable formats
8 # Remember to update font/README.md accordingly
9-methods_black=(glyf)
10-methods_color=(cbdt glyf_colr_0 glyf_colr_1 sbix picosvgz untouchedsvgz)
11+#methods_black=(glyf)
12+#methods_color=(cbdt glyf_colr_0 glyf_colr_1 sbix picosvgz untouchedsvgz)
13
14-saturations=(black color)
15+#saturations=(black color)
16 for saturation in "${saturations[@]}"; do
17 case "$saturation" in
18 black)
19@@ -43,6 +43,7 @@ for saturation in "${saturations[@]}"; do
20 mkdir -p "$build_dir/$saturation"
21
22 for method in "${methods[@]}"; do
23+ if [ -z "$method" ]; then continue; fi
24 cat >"$build_dir/$saturation/OpenMoji-$saturation-$method.toml" <<-EOF
25 output_file = "$build_dir/$saturation/OpenMoji-$saturation-$method.ttf"
26 color_format = "$method"
27@@ -55,10 +56,7 @@ default = 400
28
29 [master.regular]
30 style_name = "Regular"
31-
32-# To quickly check build reverse comments below
33-srcs = ["/mnt/$saturation/svg/*.svg"]
34-# srcs = ["/mnt/$saturation/svg/1F923.svg", "/mnt/$saturation/svg/1F1E9-1F1F0.svg"]
35+srcs = ["$(pwd)/$saturation/svg/*.svg"]
36
37 [master.regular.position]
38 wght = 400
39@@ -71,7 +69,7 @@ EOF
40 for method in "${methods[@]}"; do
41 # Generate XML for font
42 sed "s/Color/${saturation^}/;" \
43- /mnt/data/OpenMoji-Color.ttx \
44+ data/OpenMoji-Color.ttx \
45 > "$build_dir/$saturation/OpenMoji-$saturation-$method.ttx"
46
47 # Add version to XML
48@@ -89,25 +87,21 @@ EOF
49
50 # Compress with WOFF2
51 woff2_compress "$build_dir/fonts/OpenMoji-$saturation-$method/OpenMoji-$saturation-$method.ttf"
52-
53- # Generate font demo
54- /mnt/helpers/generate-font-demo.js "OpenMoji-$saturation-$method.woff2" "$build_dir/fonts/OpenMoji-$saturation-$method"
55 done
56 done
57
58-for colr_version in 0 1; do
59+for colr_version in "${maximumColorVersions[@]}"; do
60+ if [ -z "$colr_version" ]; then continue; fi
61 # Make TTF with both COLR and SVG font data in it
62 mkdir -p "$build_dir/fonts/OpenMoji-color-colr${colr_version}_svg"
63
64- maximum_color \
65+ maximum_color --build_dir="$build_dir/color" \
66 "$build_dir/fonts/OpenMoji-color-glyf_colr_${colr_version}/OpenMoji-color-glyf_colr_${colr_version}.ttf"\
67 --output_file "$build_dir/fonts/OpenMoji-color-colr${colr_version}_svg/OpenMoji-color-colr${colr_version}_svg.ttf"
68
69 woff2_compress "$build_dir/fonts/OpenMoji-color-colr${colr_version}_svg/OpenMoji-color-colr${colr_version}_svg.ttf"
70
71- /mnt/helpers/generate-font-demo.js\
72- "OpenMoji-color-colr${colr_version}_svg.woff2"\
73- "$build_dir/fonts/OpenMoji-color-colr${colr_version}_svg"
74+ rm -rf "$build_dir/fonts/OpenMoji-color-glyf_colr_${colr_version}"
75 done
76
77 echo "Done building fonts!"