my $convbin = './mkttfinfo';
my $outdir = '../ttfsupport';
-my @ttfpath = '~/.fonts'; # local fallbacks
+my @ttfpath = ('~/.fonts', '../data/osx-fonts'); # local fallbacks
if (my $mspath = '/usr/share/fonts/truetype/msttcorefonts') {
if (my $src = first { -e } map { glob "$_/Verdana.ttf" } $mspath, @ttfpath) {
}
}
+if (my $ampath = '/usr/share/fonts/truetype/macfonts') {
+ if (my $src = first { -e } map { glob "$_/Lucida?Grande.ttf" } $ampath, @ttfpath) {
+ system $convbin, $src, "$outdir/lucida.inc.pl";
+ }
+ if (my $src = first { -e } map { glob "$_/AppleGaramond.ttf" } $ampath, @ttfpath) {
+ system $convbin, $src, "$outdir/garamond.inc.pl";
+ }
+}
+
if (my $dvpath = '/usr/share/fonts/truetype/ttf-dejavu') {
if (my $src = first { -e } map { glob "$_/DejaVuSans.ttf" } $dvpath, @ttfpath) {
system $convbin, $src, "$outdir/dvsans.inc.pl";