A new user interface for you! Read more...

File build.sh of Package iosevka-fonts

#!/bin/sh

declare -A family=( \
		[iosevka]=Iosevka \
		[iosevka-term]=IosevkaTerm \
		[iosevka-type]=IosevkaType \
		[iosevka-cc]=IosevkaCC \
		[iosevka-slab]=IosevkaSlab \
		[iosevka-term-slab]=IosevkaTermSlab \
		[iosevka-type-slab]=IosevkaTypeSlab \
		[iosevka-cc-slab]=IosevkaCCSlab \
		[iosevka-hooky]=IosevkaHooky \
		[iosevka-hooky-term]=IosevkaHookyTerm \
		[iosevka-zshaped]=IosevkaZshaped \
		[iosevka-zshaped-term]=IosevkaZshapedTerm \
		)

declare -A variant=( \
		[bold]=Bold \
		[bolditalic]=BoldItalic \
		[boldoblique]=BoldOblique \
		[extralight]=Extralight \
		[extralightitalic]=ExtralightItalic \
		[extralightoblique]=ExtralightOblique \
		[heavy]=Heavy \
		[heavyitalic]=HeavyItalic \
		[heavyoblique]=HeavyOblique \
		[italic]=Italic \
		[light]=Light \
		[lightitalic]=LightItalic \
		[lightoblique]=LightOblique \
		[medium]=Medium \
		[mediumitalic]=MediumItalic \
		[mediumoblique]=MediumOblique \
		[oblique]=Oblique \
		[regular]=Regular \
		[thin]=Thin \
		[thinitalic]=ThinItalic \
		[thinoblique]=ThinOblique \
		)

for f in ${!family[@]};
do
	for v in ${!variant[@]};
	do
		mv $f-$v.ttf ${family[$f]}-${variant[$v]}.ttf
	done
done