Generate about-boe.xml dynamically

This commit is contained in:
2024-11-10 14:46:35 -06:00
parent a551da6299
commit 5c83fad1f9
11 changed files with 272 additions and 58 deletions

19
pkg/generate-startanim.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
names=$(grep ^\* DONORS.md)
name_count=$(echo "$names" | wc -l)
# For clear text, render higher point size at higher density
font_size=8
spacing=0
actual_line_size=$((font_size + spacing + 7))
first_line_offset=$((font_size + 2))
height=$((actual_line_size * name_count))
# https://www.dafont.com/pix-chicago.font
# TODO calculate line height
magick convert -size 280x$height xc:transparent \
-stroke black -pointsize $font_size -interline-spacing $spacing \
-kerning 1 -font pix-Chicago -annotate +0+$first_line_offset "$names" \
startanim2.png