haiku/3rdparty/mmu_man/scripts/generate_icon_table.sh
Augustin Cavalier 2423ba8470 Revert "Switch from DejaVu to Noto font"
This reverts commit 945566ff43.

As discussed on the mailing lists and with Humdinger off-list:
 * The general design concensus tends slightly towards DejaVu, as metrics
   of DejaVu look much better (DejaVu 12 and Noto 13 are roughly the same size,
   but Noto has much wider margins with that)
 * While Noto does have a wider set of fonts with support for lots of
   different languages, DejaVu actually has built-in support for more
   Unicode languages (the default Noto has, as far as I can tell, only
   Latin/Greek/Cyrillic [2416 glyphs], while DejaVu also has Armenian, Georgian,
   and a few other scripts too [5119 glyphs].)
 * The worse rendering of DejaVu appears to have been somewhat rectified by
   disabling the average-based subpixel filter in app_server.
2017-02-18 14:36:36 -05:00

17 lines
473 B
Bash
Executable File

#!/bin/sh
which montage > /dev/null 2>&1 || pkgman install imagemagick
tmpf=/tmp/$$_icon_
for f in data/artwork/icons/*; do
[ -d "$f" ] && continue
bn="$(basename "$f")"
translate "$f" "${tmpf}${bn}.png" 'PNG '
echo "-label"
echo "${bn}"
echo "${tmpf}${bn}.png"
done | xargs -d '\n' sh -c 'montage -frame 5 -background "#336699" -geometry +4+4 -font /system/data/fonts/ttfonts/DejaVuSansCondensed.ttf -pointsize 8 "$@" haiku_icons.png' --
rm /tmp/$$_icon_*