From: Mischa POSLAWSKY Date: Sun, 22 Apr 2012 15:46:09 +0000 (+0200) Subject: font: generate data for apple fonts from OS X X-Git-Tag: v1.6~99 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/14ce71c99460b3ad3f18f5d9b14c1e24dc68645d?ds=sidebyside font: generate data for apple fonts from OS X --- diff --git a/tools/convert-allfonts b/tools/convert-allfonts index 9610114..5f0c6aa 100755 --- a/tools/convert-allfonts +++ b/tools/convert-allfonts @@ -10,7 +10,7 @@ chdir dirname $0; 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) { @@ -33,6 +33,15 @@ if (my $mspath = '/usr/share/fonts/truetype/msttcorefonts') { } } +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";