source: general/graphlib/fontconfig.xml@ cacf29f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since cacf29f was cacf29f, checked in by Igor Živković <igor@…>, 19 years ago

Simplified sed command in the Fontconfig instructions, suggested by Anderson Lizardo.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3657 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.1 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[a2d546f]7<!ENTITY fontconfig-download-http "http://fontconfig.org/release/fontconfig-&fontconfig-version;.tar.gz">
[19bf3801]8<!-- <!ENTITY fontconfig-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/fontconfig-&fontconfig-version;.tar.gz"> -->
9<!ENTITY fontconfig-download-ftp " ">
10<!ENTITY fontconfig-md5sum "d5e42a27ad2f22bc5ec45f15533fc5d1">
11<!ENTITY fontconfig-size "962 KB">
12<!ENTITY fontconfig-buildsize "10.5 MB">
13<!ENTITY fontconfig-time "0.19 SBU">
[52d29f7]14]>
15
[b9ad2f9a]16<sect1 id="fontconfig" xreflabel="Fontconfig-&fontconfig-version;">
[a0f03b0]17<sect1info>
[5cd0959d]18<othername>$LastChangedBy$</othername>
19<date>$Date$</date>
[a0f03b0]20</sect1info>
[7f72cbf]21<?dbhtml filename="fontconfig.html"?>
[b9ad2f9a]22<title>Fontconfig-&fontconfig-version;</title>
[19bf3801]23<indexterm zone="fontconfig">
24<primary sortas="a-Fontconfig">Fontconfig</primary></indexterm>
[8de6b187]25
[52d29f7]26<sect2>
27<title>Introduction to <application>Fontconfig</application></title>
[d82991f]28
[52d29f7]29<para>The <application>Fontconfig</application> package is a library
30for configuring and customizing font access.</para>
[d82991f]31
[52d29f7]32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP): <ulink
35url="&fontconfig-download-http;"/></para></listitem>
36<listitem><para>Download (FTP): <ulink
37url="&fontconfig-download-ftp;"/></para></listitem>
[d97499f]38<listitem><para>Download MD5 sum: &fontconfig-md5sum;</para></listitem>
[52d29f7]39<listitem><para>Download size: &fontconfig-size;</para></listitem>
[a2d546f]40<listitem><para>Estimated disk space required:
[52d29f7]41&fontconfig-buildsize;</para></listitem>
42<listitem><para>Estimated build time:
43&fontconfig-time;</para></listitem></itemizedlist>
[d82991f]44
[c82e999]45<note><para>The numbering system of <application>Fontconfig</application> is
46unusual. The beta versions of the package are numbered with a 9x in the last
[19bf3801]47portion of the release number. This means that 2.3.90 is a beta release and
48the most current release is of the form 2.3.1</para></note>
[52d29f7]49</sect3>
50
51<sect3><title><application>Fontconfig</application> dependencies</title>
52<sect4><title>Required</title>
[a2d546f]53<para><xref linkend="freetype2"/> and <xref linkend="expat"/></para>
54</sect4>
55
[52d29f7]56<sect4><title>Optional</title>
[a2d546f]57<para><xref linkend="docbook-utils"/></para>
[e8b9dbf7]58
59<note><para>If you have <application>DocBook-utils</application> installed,
60you must also have <xref linkend="perl-modules"/>: SGMLSpm-1.03ii installed
61also, or the <application>Fontconfig</application> build will
62fail.</para></note>
[a2d546f]63</sect4>
[52d29f7]64</sect3>
[c82e999]65
[52d29f7]66</sect2>
67
68<sect2>
69<title>Installation of <application>Fontconfig</application></title>
[d82991f]70
71<para>Install <application>Fontconfig</application> by running the following
72commands:</para>
73
[f9d2ee6]74<screen><userinput><command>./configure --prefix=/usr \
75 --sysconfdir=/etc --disable-docs &amp;&amp;
[19bf3801]76make</command></userinput></screen>
77
[907fee89]78<para>To test the results, issue: <command>make check</command>.</para>
79
[19bf3801]80<para>Now, as the root user:</para>
81
82<screen><userinput role='root'><command>make install</command></userinput></screen>
[52d29f7]83</sect2>
84
[f9d2ee6]85<sect2>
86<title>Command explanations</title>
87
88<para><option>--disable-docs</option>: This switch avoids building the
89documentation. If you wish to build the documentation using
90<application>DocBook-utils</application>, you may need to remove the
91<application>OpenSP</application> catalog definitions from the system
[04af8b24]92<acronym>SGML</acronym> catalogs. Use the following command before building
[f9d2ee6]93the package to accomplish this:</para>
94
[04af8b24]95<screen><userinput><command>sed -i.orig \
[cacf29f]96 -e "\%CATALOG /etc/sgml/OpenSP-1.5.1.cat%d" \
[04af8b24]97 /etc/sgml/catalog \
[f9d2ee6]98 /etc/sgml/sgml-docbook.cat</command></userinput></screen>
99
100</sect2>
101
[52d29f7]102<sect2>
103<title>Configuring <application>Fontconfig</application></title>
[d82991f]104
[19bf3801]105<sect3 id="fontconfig-config"><title>Config files</title>
106<para><filename>/etc/fonts/* and /etc/fonts/conf.d/*</filename></para>
107<indexterm zone="fontconfig fontconfig-config">
108<primary sortas="e-etc-fonts">/etc/fonts/*</primary></indexterm>
109<indexterm zone="fontconfig fontconfig-config">
110<primary sortas="e-etc-fonts-conf.d">/etc/fonts/conf.d/*</primary></indexterm>
[52d29f7]111</sect3>
[d82991f]112
[52d29f7]113<sect3><title>Configuration Information</title>
[d82991f]114
115<para>The configuration file for <application>Fontconfig</application> is
116<filename>/etc/fonts/fonts.conf</filename>. Generally you do not want to edit
[19bf3801]117this file. To put a new font directory in the configuration, create (or
118update) the <filename>/etc/fonts/local.conf</filename> file with your local
119information. The default location of fonts in
120<application>Fontconfig</application> is:
[c82e999]121</para>
122
[52d29f7]123<itemizedlist spacing='compact'>
124<listitem><para>/usr/share/fonts</para></listitem>
125<listitem><para>~/.fonts</para></listitem>
126</itemizedlist>
[19bf3801]127<indexterm zone="fontconfig fontconfig-config">
128<primary sortas="g-usr-share-fonts">/usr/share/fonts</primary></indexterm>
129<indexterm zone="fontconfig fontconfig-config">
130<primary sortas="g-AA.fonts">~/.fonts</primary></indexterm>
[d82991f]131
[52d29f7]132<note><para><application>X</application> also includes an internal (and
[c82e999]133older) version of <application>Fontconfig</application> and unless it is
[19bf3801]134explicitly disabled when building <application>Xorg</application> or
135<application>XFree86</application>, the internal version is created leaving
136two slightly incompatible libraries on your system. It is recommended that
137you only install one version.</para></note>
[52d29f7]138</sect3>
[d82991f]139
[52d29f7]140</sect2>
141
142<sect2>
143<title>Contents</title>
[d82991f]144
[19bf3801]145<segmentedlist>
146<segtitle>Installed Programs</segtitle>
147<segtitle>Installed Library</segtitle>
148<segtitle>Installed Directories</segtitle>
149
150<seglistitem>
151<seg>fc-cache, fc-list and fc-match</seg>
152<seg>libfontconfig.[so,a]</seg>
153<seg>/etc/fonts and /usr/include/fontconfig</seg>
154</seglistitem>
155</segmentedlist>
156
157<variablelist>
158<bridgehead renderas="sect3">Short Descriptions</bridgehead>
159<?dbfo list-presentation="list"?>
160
161<varlistentry id="fc-cache">
162<term><command>fc-cache</command></term>
163<listitem><para>is used to create font information caches.</para>
164<indexterm zone="fontconfig fc-cache">
165<primary sortas="b-fc-cache">fc-cache</primary>
166</indexterm></listitem>
167</varlistentry>
168
169<varlistentry id="fc-list">
170<term><command>fc-list</command></term>
171<listitem><para>is used to create font lists.</para>
172<indexterm zone="fontconfig fc-list">
173<primary sortas="b-fc-list">fc-list</primary>
174</indexterm></listitem>
175</varlistentry>
176
177<varlistentry id="fc-match">
178<term><command>fc-match</command></term>
179<listitem><para>is used to match available fonts, or find fonts that match
180a given pattern.</para>
181<indexterm zone="fontconfig fc-match">
182<primary sortas="b-fc-match">fc-match</primary>
183</indexterm></listitem>
184</varlistentry>
185
186<varlistentry id="libfontconfig">
187<term><filename class='libraryfile'>libfontconfig.[so,a]</filename></term>
188<listitem><para>contains functions used by the
189<application>Fontconfig</application> programs and also by other programs to
190configure or customize font access.</para>
191<indexterm zone="fontconfig libfontconfig">
192<primary sortas="c-libfontconfig">libfontconfig.[so,a]</primary>
193</indexterm></listitem>
194</varlistentry>
195</variablelist>
[d82991f]196
[52d29f7]197</sect2>
[8de6b187]198
199</sect1>
Note: See TracBrowser for help on using the repository browser.