diff options
author | Norbert Preining <preining@logic.at> | 2009-06-20 03:00:20 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-06-20 03:00:20 +0000 |
commit | 8064f0d122c46c018311861f531d604c5e64c6c8 (patch) | |
tree | 09ed501482e74cf16d2f2532b6382503cfefac79 /Master/tlpkg/tlpostcode | |
parent | d669fb982aa8703f158d9b7ceaaf253b971a216d (diff) |
create a texlive-fontconfig.conf file on unix, too
git-svn-id: svn://tug.org/texlive/trunk@13837 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlpostcode')
-rw-r--r-- | Master/tlpkg/tlpostcode/xetex.pl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/tlpkg/tlpostcode/xetex.pl b/Master/tlpkg/tlpostcode/xetex.pl index 2ac468358e7..910773f884f 100644 --- a/Master/tlpkg/tlpostcode/xetex.pl +++ b/Master/tlpkg/tlpostcode/xetex.pl @@ -76,6 +76,21 @@ if (win32()) { log(`fc-cache -v -r 2>&1`); #system("fc-cache","-v", "-r"); } else { + # create a texlive-fontconfig.conf file in $texmfsysvar + mkdirhier("$texmfsysvar/fonts/conf"); + if (!open(FONTSCONF, ">$texmfsysvar/fonts/conf/texlive-fontconfig.conf")) { + warn("Cannot open $texmfsysvar/fonts/conf/texlive-fontconfig.conf for writing\n"); + } else { + print FONTSCONF '<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +'; + for my $t (qw/opentype truetype type1/) { + print FONTSCONF "<dir>$texdir/texmf-dist/fonts/$t</dir>\n"; + } + print FONTSCONF "</fontconfig>\n"; + close(FONTSCONF) || tlwarn("Cannot close filehandle for texmfsysvar/fonts/conf/texlive-fontconfig.conf\n"); + } # cygwin specific warning # we don't have platform available ... chomp(my $un = `uname`); |