Changeset 19e9cee for x/installing/truetype.xml
- Timestamp:
- 09/14/2002 09:47:22 PM (22 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 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, v1_0, v5_0, v5_0-pre1, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- bc013897
- Parents:
- 07ba0069
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/truetype.xml
r07ba0069 r19e9cee 3 3 <title>Adding TrueType font support to XFree86</title> 4 4 5 <para> 6 TrueType font support is now built into XFree86. The following items need to 7 be completed to make the fonts available. 8 </para> 5 <para>TrueType font support is now built into XFree86. The following items need to 6 be completed to make the fonts available.</para> 7 9 8 <itemizedlist> 10 9 11 <listitem><para>Establish a directory for the fonts and move any TrueType fonts12 you want into that directory. 13 </para></listitem> 10 <listitem><para>Establish a directory for the fonts and move any 11 TrueType fonts you want into that directory.</para></listitem> 12 14 13 <listitem><para>Create the <filename>fonts.scale</filename> and 15 <filename>fonts.dir</filename> files in the TrueType font directory. 16 </para></listitem> 14 <filename>fonts.dir</filename> files in the TrueType font 15 directory.</para></listitem> 16 17 17 <listitem><para>Ensure the truetype module is loaded in 18 <filename>XF86Config</filename>. 19 </para></listitem> 18 <filename>XF86Config</filename>.</para></listitem> 19 20 20 <listitem><para>Ensure the <parameter>FontPath</parameter> in 21 <filename>XF86Config</filename> contains the TrueType font directory. 22 </para></listitem> 21 <filename>XF86Config</filename> contains the TrueType font 22 directory.</para></listitem> 23 23 24 </itemizedlist> 24 25 25 26 <sect2><title>Establish a TrueType font directory</title> 27 26 28 <para>The build of XFree86 as given above automatically creates a TrueType 27 29 font directory: <filename>/usr/X11R6/lib/X11/fonts/TTF</filename>. This … … 30 32 into that directory. If not, create a new directory, preferably in 31 33 the <filename>/usr/X11R6/lib/X11/fonts/</filename> directory and put 32 your TrueType fonts there. 33 </para></sect2> 34 your TrueType fonts there.</para></sect2> 34 35 35 36 <sect2><title>Create <filename>fonts.scale</filename> and 36 37 <filename>fonts.dir</filename></title> 38 37 39 <para>To make the <filename>fonts.scale</filename> file, you have to build the 38 40 program <filename>ttmkfdir</filename>. Unfortunately, this program needs … … 40 42 that first.</para> 41 43 42 <screen>Download location: 43 <ulink url="http://prdownloads.sourceforge.net/freetype/freetype-1.3.1.tar.gz"/></screen> 44 <screen>Download location (HTTP): <ulink url="http://prdownloads.sourceforge.net/freetype/freetype-1.3.1.tar.gz"/></screen> 44 45 45 46 <para>Unpack the file and build with 46 <screen> ./configure --prefix=/usr &&47 <screen><userinput>./configure --prefix=/usr && 47 48 make && 48 49 make install && 49 ldconfig</screen> 50 </para> 50 ldconfig</userinput></screen></para> 51 51 52 <para> 53 Now build the <filename>ttmkfdir</filename> utility. 54 52 <para>Now build the <filename>ttmkfdir</filename> utility. 55 53 <screen>Download location: <ulink url="http://freshmeat.net/projects/ttmkfdir"/></screen> 56 54 The filename is <filename>ttmkfdir.tar.gz</filename>. 57 55 </para> 58 56 59 <para> 60 This is a very short program that unpacks it is files in the current 57 <para>This is a very short program that unpacks it is files in the current 61 58 directory, so its best to make a separate directory. 62 <screen> mkdir ttmkfdir &&59 <screen><userinput>mkdir ttmkfdir && 63 60 cd ttmkfdir && 64 tar zxvf ../ttmkfdir.tar.gz</screen> 65 </para> 61 tar zxvf ../ttmkfdir.tar.gz</userinput></screen></para> 66 62 67 63 <para>Edit the <filename>Makefile</filename> to make the following changes: … … 72 68 73 69 <para>Run 74 <screen>make && 75 install -m755 ttmkfdir /usr/bin</screen> 76 </para> 70 <screen><userinput>make && 71 install -m755 ttmkfdir /usr/bin</userinput></screen></para> 77 72 78 73 <para>Now change to the directory where you have your TrueType fonts and run 79 74 <screen>ttmkfdir -o fonts.scale && 80 mkfontdir</screen></para> 81 </sect2> 75 mkfontdir</screen></para></sect2> 82 76 83 <sect2><title>Ensure TrueType is loaded in <filename>XF86Config</filename> 84 </title> 77 <sect2><title>Ensure TrueType is loaded in <filename>XF86Config</filename></title> 85 78 <para>The "Module" section should look like: 86 79 <screen>Section "Module" … … 88 81 Load "freetype" 89 82 Load "speedo" 90 EndSection</screen> 91 </para></sect2> 83 EndSection</screen></para></sect2> 92 84 93 85 <sect2><title>Ensure the <parameter>FontPath</parameter> in … … 97 89 ... 98 90 FontPath "/usr/X11R6/lib/X11/fonts/TTF/" 99 EndSection</screen> 100 </para> 91 EndSection</screen></para> 101 92 102 93 <para>XFree86 will now be able to use TrueType fonts when it is restarted. 103 94 You can check to see if the new fonts are available with the 104 <userinput>xlsfonts</userinput> program. 105 </para> 106 </sect2> 95 <userinput>xlsfonts</userinput> program.</para></sect2> 107 96 108 97 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.