source: x/installing/x7font.xml@ b83af874

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since b83af874 was b83af874, checked in by Xi Ruoyao <xry111@…>, 20 months ago

x7font: X11-{OTF,TTF} symlinks are only for [ XORG_PREFIX != /usr ]

If [ XORG_PREFIX = /usr ] , the symlinks causes duplicated entries in
fc-list output.

TODO: should we just link "X11" directory instead of creating two links?

  • Property mode set to 100644
File size: 7.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY x7fonts-download-http "&xorg-download-http;/font/">
8 <!ENTITY x7fonts-download-ftp "&xorg-download-ftp;/font/">
9 <!ENTITY x7fonts-size "3.0 MB">
10 <!ENTITY x7fonts-buildsize "8.8 MB">
11 <!ENTITY x7fonts-time "0.1 SBU">
12
13 <!ENTITY encodings-version "1.0.6">
14 <!ENTITY encodings-md5sum "c2bcfdc52b8b6462228342cedae2fed9">
15
16 <!ENTITY font-adobe-utopia-type1-version "1.0.4">
17 <!ENTITY font-adobe-utopia-type1-md5sum "fcf24554c348df3c689b91596d7f9971">
18
19 <!ENTITY font-alias-version "1.0.4">
20 <!ENTITY font-alias-md5sum "0497de0176a0dfa5fac2b0552a4cf380">
21
22 <!ENTITY font-bh-ttf-version "1.0.3">
23 <!ENTITY font-bh-ttf-md5sum "e8ca58ea0d3726b94fe9f2c17344be60">
24
25 <!ENTITY font-bh-type1-version "1.0.3">
26 <!ENTITY font-bh-type1-md5sum "53ed9a42388b7ebb689bdfc374f96a22">
27
28 <!ENTITY font-ibm-type1-version "1.0.3">
29 <!ENTITY font-ibm-type1-md5sum "bfb2593d2102585f45daa960f43cb3c4">
30
31 <!ENTITY font-misc-ethiopic-version "1.0.4">
32 <!ENTITY font-misc-ethiopic-md5sum "4ee18ab6c1edf636b8e75b73e6037371">
33
34 <!ENTITY font-util-version "1.3.3">
35 <!ENTITY font-util-md5sum "d92913afdcd8ac008225a8bd06488702">
36
37 <!ENTITY font-xfree86-type1-version "1.0.4">
38 <!ENTITY font-xfree86-type1-md5sum "3eeb3fb44690b477d510bbd8f86cf5aa">
39
40]>
41
42<sect1 id="xorg7-font" xreflabel="Xorg Fonts">
43 <?dbhtml filename="x7font.html"?>
44
45 <sect1info>
46 <date>$Date$</date>
47 </sect1info>
48
49 <title>Xorg Fonts</title>
50
51 <indexterm zone="xorg7-font">
52 <primary sortas="a-xorg7-font">Xorg Fonts</primary>
53 </indexterm>
54
55 <sect2 role="package">
56 <title>Introduction to Xorg Fonts</title>
57
58 <para>
59 The <application>Xorg</application> font packages provide some scalable
60 fonts and supporting packages for <application>Xorg</application>
61 applications. Many people will want to install other TTF or OTF fonts in
62 addition to, or instead of, these. Some are listed at <xref
63 linkend="TTF-and-OTF-fonts"/>.
64 </para>
65
66 &lfs112_checked;
67
68 <bridgehead renderas="sect3">Package Information</bridgehead>
69 <itemizedlist spacing="compact">
70 <listitem>
71 <para>
72 Download (HTTP): <ulink url="&x7fonts-download-http;"/>
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Download (FTP): <ulink url="&x7fonts-download-ftp;"/>
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Download size: &x7fonts-size;
83 </para>
84 </listitem>
85 <listitem>
86 <para>
87 Estimated disk space required: &x7fonts-buildsize;
88 </para>
89 </listitem>
90 <listitem>
91 <para>
92 Estimated build time: &x7fonts-time;
93 </para>
94 </listitem>
95 </itemizedlist>
96
97 <bridgehead renderas="sect3">Xorg Fonts Dependencies</bridgehead>
98
99 <bridgehead renderas="sect4">Required</bridgehead>
100 <para role="required">
101 <xref linkend="xcursor-themes"/>
102 </para>
103
104 <para condition="html" role="usernotes">User Notes:
105 <ulink url='&blfs-wiki;/Xorg7Fonts'/></para>
106
107 </sect2>
108
109 <sect2>
110 <title>Downloading Xorg Fonts</title>
111
112 <para>
113 First, create a list of files to be downloaded. This file will also
114 be used to verify the integrity of the downloads when complete:
115 </para>
116
117<screen><userinput>cat &gt; font-&xorg-version;.md5 &lt;&lt; "EOF"
118<literal>&font-util-md5sum; font-util-&font-util-version;.tar.xz
119&encodings-md5sum; encodings-&encodings-version;.tar.xz
120&font-alias-md5sum; font-alias-&font-alias-version;.tar.bz2
121&font-adobe-utopia-type1-md5sum; font-adobe-utopia-type1-&font-adobe-utopia-type1-version;.tar.bz2
122&font-bh-ttf-md5sum; font-bh-ttf-&font-bh-ttf-version;.tar.bz2
123&font-bh-type1-md5sum; font-bh-type1-&font-bh-type1-version;.tar.bz2
124&font-ibm-type1-md5sum; font-ibm-type1-&font-ibm-type1-version;.tar.bz2
125&font-misc-ethiopic-md5sum; font-misc-ethiopic-&font-misc-ethiopic-version;.tar.bz2
126&font-xfree86-type1-md5sum; font-xfree86-type1-&font-xfree86-type1-version;.tar.bz2</literal>
127EOF</userinput></screen>
128
129 <para>
130 To download the needed files using <application>wget</application>,
131 use the following commands:
132 </para>
133
134<screen><userinput>mkdir font &amp;&amp;
135cd font &amp;&amp;
136grep -v '^#' ../font-&xorg-version;.md5 | awk '{print $2}' | wget -i- -c \
137 -B &xorg-download-http;/font/ &amp;&amp;
138md5sum -c ../font-&xorg-version;.md5</userinput></screen>
139
140 </sect2>
141
142 <sect2 role="installation">
143 <title>Installation of Xorg Fonts</title>
144
145&as_root;
146
147 <para>
148 First, start a subshell that will exit on error:
149 </para>
150
151<screen><userinput>bash -e</userinput></screen>
152
153 <para>
154 Install all of the packages by running the following commands:
155 </para>
156
157<screen><userinput>for package in $(grep -v '^#' ../font-&xorg-version;.md5 | awk '{print $2}')
158do
159 packagedir=${package%.tar.?z*}
160 tar -xf $package
161 pushd $packagedir
162 ./configure $XORG_CONFIG
163 make
164 as_root make install
165 popd
166 as_root rm -rf $packagedir
167done</userinput></screen>
168
169 <para>
170 Finally, exit the shell that was started earlier:
171 </para>
172
173<screen><userinput>exit</userinput></screen>
174
175 <para>
176 When all of the fonts have been installed, the system must be
177 configured so that <application>Fontconfig</application> can find the
178 TrueType fonts. since they are outside of the default search path of
179 <emphasis role="bold">If <envar>XORG_PREFIX</envar> is not
180 <filename class="directory">/usr</filename></emphasis>, make symlinks
181 to the <application>Xorg</application> TrueType font directories in
182 <filename class="directory">/usr/share/fonts</filename> by
183 running the following commands as the
184 <systemitem class="username">root</systemitem> user:
185 </para>
186
187<screen role="root"><userinput>install -v -d -m755 /usr/share/fonts &amp;&amp;
188ln -svfn $XORG_PREFIX/share/fonts/X11/OTF /usr/share/fonts/X11-OTF &amp;&amp;
189ln -svfn $XORG_PREFIX/share/fonts/X11/TTF /usr/share/fonts/X11-TTF</userinput></screen>
190
191 </sect2>
192
193 <sect2 role="content">
194 <title>Contents</title>
195
196 <segmentedlist>
197 <segtitle>Installed Programs</segtitle>
198 <segtitle>Installed Libraries</segtitle>
199 <segtitle>Installed Directories</segtitle>
200
201 <seglistitem>
202 <seg>bdftruncate and ucs2any</seg>
203 <seg>None</seg>
204 <seg><envar>$XORG_PREFIX</envar>/share/fonts</seg>
205 </seglistitem>
206 </segmentedlist>
207
208 <variablelist>
209 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
210 <?dbfo list-presentation="list"?>
211 <?dbhtml list-presentation="table"?>
212
213 <varlistentry id="bdftruncate-x7">
214 <term><command>bdftruncate</command></term>
215 <listitem>
216 <para>
217 generates a truncated BDF font from an ISO 10646-1 encoded BDF font
218 </para>
219 <indexterm zone="xorg7-font bdftruncate-x7">
220 <primary sortas="b-bdftruncate">bdftruncate</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="ucs2any-x7">
226 <term><command>ucs2any</command></term>
227 <listitem>
228 <para>
229 generates BDF fonts in any encoding from an ISO 10646-1 encoded
230 BDF font
231 </para>
232 <indexterm zone="xorg7-font ucs2any-x7">
233 <primary sortas="b-ucs2any">ucs2any</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 </variablelist>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.