summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlpostcode/xetex.pl
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-26 00:01:09 +0000
committerKarl Berry <karl@freefriends.org>2011-09-26 00:01:09 +0000
commit94ec53bd37e1f36540195f3aadee0aa1be7830ee (patch)
tree01c5165e6c98b21cef4416882bc64f0dec132e69 /Master/tlpkg/tlpostcode/xetex.pl
parent342e053f7cdc2f37f18f78615da68199f45cdf7f (diff)
a bit more doc about fontconfig
git-svn-id: svn://tug.org/texlive/trunk@24091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlpostcode/xetex.pl')
-rw-r--r--Master/tlpkg/tlpostcode/xetex.pl23
1 files changed, 10 insertions, 13 deletions
diff --git a/Master/tlpkg/tlpostcode/xetex.pl b/Master/tlpkg/tlpostcode/xetex.pl
index f37fc491dfd..ad94e9ac506 100644
--- a/Master/tlpkg/tlpostcode/xetex.pl
+++ b/Master/tlpkg/tlpostcode/xetex.pl
@@ -1,15 +1,12 @@
# $Id$
-# post action for xetex
-# Copyright 2008, 2009 Norbert Preining
+# post action for xetex to handle system font stuff.
+# Copyright 2008, 2009, 2011 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.
-
-# TODO TODO TODO
-# only on install (also on update???) we should copy all the fontconf files
-# from tlpkg/installer/fontconfig (?? final position ??) to TEXMFSYSVAR for
-# win32, and unix create a fonts.conf file and tell users to install it
-# either as .fonts.conf or drop it into /etc/fonts/conf.d/texlive.conf or so
-
+#
+# We create the fontconfig configuration file. On Windows,
+# we also run fc-cache to make the fonts available.
+# http://www.tug.org/texlive/doc/texlive-en/texlive-en.html#xetexfontconfig
my $texdir;
my $mode;
@@ -93,11 +90,11 @@ sub do_install {
warn("Cannot open $fconf/texlive-fontconfig.conf for writing\n");
} else {
print FONTSCONF '<?xml version="1.0"?>
- <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
- <fontconfig>
- ';
+<!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 " <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");