summaryrefslogtreecommitdiff
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
parent342e053f7cdc2f37f18f78615da68199f45cdf7f (diff)
a bit more doc about fontconfig
git-svn-id: svn://tug.org/texlive/trunk@24091 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf/doc/texlive/texlive-en/texlive-en.tex20
-rw-r--r--Master/tlpkg/tlpostcode/xetex.pl23
2 files changed, 23 insertions, 20 deletions
diff --git a/Master/texmf/doc/texlive/texlive-en/texlive-en.tex b/Master/texmf/doc/texlive/texlive-en/texlive-en.tex
index 1e592525994..6cc17594483 100644
--- a/Master/texmf/doc/texlive/texlive-en/texlive-en.tex
+++ b/Master/texmf/doc/texlive/texlive-en/texlive-en.tex
@@ -1068,11 +1068,15 @@ specify a particular \CTAN\ mirror from the list at
\subsubsection{Font configuration for \XeTeX}
\label{sec:font-conf-xetex}
-If you have installed the \filename{xetex} package on a Unix-compatible
-system, you need to configure your system if you want \XeTeX\ to be able
-to find the fonts shipped with \TL. To facilitate this, when the
-\pkgname{xetex} package is installed (either at initial installation or
-later), the necessary configuration file is created in
+On Windows, fonts shipped with \TL\ are made available to \XeTeX\
+automatically. But if you have installed the \filename{xetex} package
+on a Unix-compatible system, you need to configure your system to be
+able to find the fonts shipped with \TL\ via system name lookup, and not
+just filename lookup.
+
+To facilitate this, when the \pkgname{xetex} package is installed
+(either at initial installation or later), the necessary configuration
+file is created in
\filename{TEXMFSYSVAR/fonts/conf/texlive-fontconfig.conf}.
To set up the \TL{} fonts for system-wide use (assuming you have
@@ -1084,14 +1088,16 @@ suitable privileges), proceed as follows:
\end{enumerate*}
If you do not have sufficient privileges to carry out the steps above,
-you can instead do the following to make the \TL{} fonts available
-to you as an individual \XeTeX{} user:
+or if you simply want to make the \TL{} fonts available to one user,
+you can do the following:
\begin{enumerate*}
\item Copy the \filename{texlive-fontconfig.conf} file to
\filename{~/.fonts.conf}, where \filename{~} is your home directory.
\item Run \Ucom{fc-cache -fv}.
\end{enumerate*}
+You can run \code{fc-list} to see the names of the system fonts.
+
\subsubsection{\ConTeXt{} Mark IV}
\label{sec:context-mkiv}
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");