font: more generic rules to parse ttf files
[sheet.git] / tools / mkttfinfo
index c80f5fceb378ab9a75550c422a36b2ab3afbc4de..ad8530e531e17785cca0c48fc106c6c6cf46e7dd 100755 (executable)
@@ -16,7 +16,7 @@ GetOptions(my %opt,
 my ($ttfuri, $outfile) = @ARGV;
 $ttfuri or die "usage error\n";
 
-my $fontinc = $ENV{FONTINC} // '~/.fonts,/usr/share/fonts/truetype/*';
+my $fontinc = $ENV{FONTINC} // 'data/font,~/.fonts,/usr/share/fonts/truetype/*';
 if (!-e $ttfuri) {
        my $found = (grep {-e} glob "{$fontinc}/$ttfuri")[0] or do {
                warn "font not found: $ttfuri\n";