From 14ce71c99460b3ad3f18f5d9b14c1e24dc68645d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 22 Apr 2012 17:46:09 +0200 Subject: [PATCH] font: generate data for apple fonts from OS X --- tools/convert-allfonts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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"; -- 2.30.0