font: drop droid in favour of roboto and noto
[sheet.git] / tools / convert-allfonts
index 5f0c6aa8cd84de36089c58a52f6ccae540a88af4..9d75e0642ef00c89ff585aca2e010e0d96c45e33 100755 (executable)
@@ -56,7 +56,7 @@ if (my $dvpath = '/usr/share/fonts/truetype/ttf-dejavu') {
 
 if (my $gdpath = '/usr/share/fonts/truetype/droid') {
        if (my $src = first { -e } map { glob "$_/DroidSans.ttf" } $gdpath, @ttfpath) {
-               system $convbin, $src, "$outdir/droidsans.inc.pl";
+               system $convbin, $src, "$outdir/droid.inc.pl";
        }
        if (my $src = first { -e } map { glob "$_/DroidSerif.ttf" } $gdpath, @ttfpath) {
                system $convbin, $src, "$outdir/droidserif.inc.pl";
@@ -66,6 +66,21 @@ if (my $gdpath = '/usr/share/fonts/truetype/droid') {
        }
 }
 
+if (my $grpath = '/usr/share/fonts/truetype/roboto') {
+       if (my $src = first { -e } map { glob "$_/Roboto-Regular.ttf" } $grpath, @ttfpath) {
+               system $convbin, $src, "$outdir/roboto.inc.pl";
+       }
+}
+
+if (my $gnpath = '/usr/share/fonts/truetype/noto') {
+       if (my $src = first { -e } map { glob "$_/NotoSans-Regular.ttf" } $gnpath, @ttfpath) {
+               system $convbin, $src, "$outdir/noto.inc.pl";
+       }
+       if (my $src = first { -e } map { glob "$_/NotoSerif-Regular.ttf" } $gnpath, @ttfpath) {
+               system $convbin, $src, "$outdir/noto.inc.pl";
+       }
+}
+
 {
        if (my $src = first { -e } map { glob "$_/code2000.ttf" } @ttfpath) {
                system $convbin, $src, "$outdir/c2k.inc.pl";