Changeset c51ade2 for x


Ignore:
Timestamp:
05/29/2006 05:16:21 PM (18 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.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
Children:
4e8205c8
Parents:
90d588e
Message:

Fixes for the X Window System Components page: DRI configuration and Xft/Fontconfig

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/x-setup.xml

    r90d588e rc51ade2  
    1818    <sect2 role="configuration" id='xconfig'>
    1919    <title>Configuring The X Window System</title>
     20
     21    <para condition="html" role="usernotes">User Notes:
     22    <ulink url='&blfs-wiki;/XWindowSystemComponents'/></para>
    2023
    2124    <para>If you've installed the X Window System in any prefix other
     
    7477      </listitem>
    7578      <listitem>
    76         <para>Section "Module". If you are going to install NVidia
     79        <para>Section "Module". If you are going to install NVIDIA
    7780        drivers, remove the "dri" line.</para>
    7881      </listitem>
     
    130133    <filename class="directory">/etc/X11</filename> with previous
    131134    versions of <application>Xorg</application>.  This step is not needed
    132     for users of Xorg-&xorg-version; or XFree86.  Exectute the following
     135    for users of Xorg-&xorg-version; or XFree86.  Execute the following
    133136    commands as the <systemitem class="username">root</systemitem>
    134137    user:</para>
     
    211214    in a safe and efficient manner. It is installed in
    212215    <application>X</application> by default if you have a supported video card.
    213     To check if DRI is installed properly, check the log file
     216    To enable direct rendering using the OpenGL implementation from
     217    <xref linkend="mesalib"/> (built separately with <xref linkend="xorg7"/>
     218    or included with <xref linkend="xorg"/> and <xref linkend="xfree86"/>),
     219    the "glx" and "dri" modules must be loaded.  Additionally, the created
     220    device nodes in <filename class="directory">/dev/dri</filename> must
     221    have proper permissions for your users.  A sample
     222    <filename>XF86config</filename> or <filename>xorg.conf</filename>
     223    file might look like this:</para>
     224
     225<screen><literal>Section "Module"
     226    ...
     227    Load  "glx"
     228    Load  "dri"
     229    ...
     230EndSection
     231...
     232Section "DRI"
     233    Group "video"
     234    Mode  0660
     235EndSection</literal></screen>
     236
     237    <note><para>DRI configuration may differ if you are using alternate
     238    drivers, such as those from
     239    <ulink url="http://www.nvidia.com/page/home.html">NVIDIA</ulink> or
     240    <ulink url="http://www.ati.com/">ATI</ulink>.</para>
     241    </note>
     242
     243    <para>To check if DRI is installed properly, check the log file
    214244    <filename>/var/log/XFree86.0.log</filename> or
    215245    <filename>/var/log/Xorg.0.log</filename> for statements like:</para>
     
    221251
    222252<screen><computeroutput>direct rendering: Yes</computeroutput></screen>
     253
     254    <para>If direct rendering is not enabled, you can add verbosity by
     255    running <command>LIBGL_DEBUG=verbose glxinfo</command>.  This will
     256    show the drivers, device nodes and files used by the DRI system.</para>
    223257
    224258    <para>You can also run the test program <command>glxgears</command>.
     
    356390      client side using <application>Fontconfig</application>.  The default
    357391      search path is <filename class="directory">/usr/share/fonts</filename>
    358       and <filename class="directory">~/.fonts</filename>.
    359       When installing <application>X</application>, symlinks were created from
    360       the <filename class="directory">OTF</filename> and <filename
    361       class="directory">TTF</filename> <application>X</application> font
    362       directories to <filename
    363       class="directory">/usr/share/fonts/X11-{OTF,TTF}</filename>.  This
    364       prevents <application>Fontconfig</application> from using the poorly
    365       rendered Type1 fonts or the non-scalable bitmapped fonts.</para>
    366 
    367       <para><application>Fontconfig</application> searches directories in its
     392      and <filename class="directory">~/.fonts</filename>.
     393      <application>Fontconfig</application> searches directories in its
    368394      path recursively and maintains a cache of the font characteristics in
    369395      <filename>fonts.cache-1</filename> files in each directory.  If the cache
     
    371397      fetched from the fonts themselves.  This cache
    372398      can be regenerated using the <command>fc-cache</command> command at any
    373       time.</para>
     399      time. You can see the list of fonts known by
     400      <application>Fontconfig</application> by running the command
     401      <command>fc-list</command>.</para>
     402
     403      <para>The <application>X</application> fonts were not installed in a
     404      location known to <application>Fontconfig</application>. This prevents
     405      <application>Fontconfig</application> from using the poorly rendered
     406      Type 1 fonts or the non-scalable bitmapped fonts. Symlinks were created
     407      from the <filename class="directory">OTF</filename> and <filename
     408      class="directory">TTF</filename> <application>X</application> font
     409      directories to <filename
     410      class="directory">/usr/share/fonts/X11-{OTF,TTF}</filename>. This allows
     411      <application>Fontconfig</application> to use the OpenType and TrueType
     412      fonts provided by <application>X</application> (which are scalable and
     413      of higher quality).</para>
    374414
    375415      <para><application>Fontconfig</application> uses names such as
     
    379419      has all characters that cover the orthography of the language indicated
    380420      by the locale settings.  Knowledge of these font names is included in
    381       <filename>/etc/fonts/fonts.conf</filename>.</para>
     421      <filename>/etc/fonts/fonts.conf</filename>. Fonts that are not listed
     422      in this file are still usable by <application>Fontconfig</application>,
     423      but they will not be accessible by the generic family names.</para>
    382424
    383425      <para>Standard scalable fonts that come with <application>X</application>
     
    400442          - These fonts are replacements for the Bitstream Vera fonts and
    401443          provide Latin-based scripts with accents and Cyrillic glyphs.
    402           <application>Fontconfig</application> does not know about the DejaVu
    403           fonts by default, so <filename>/etc/fonts/fonts.conf</filename> will
     444          The DejaVu fonts by are not aliased to the generic family names
     445          by default, so <filename>/etc/fonts/fonts.conf</filename> will
    404446          have to be edited for it to be recognized by the generic names such
    405447          as "Sans".  This will be described below.</para>
     
    417459          - These fonts provide slightly worse Unicode coverage than FreeFont,
    418460          but are better hinted.  Be sure to read the license before using
    419           them.  <application>Fontconfig</application> knows about them by
    420           default.</para>
     461          them. These fonts are listed in the
     462          <filename>/etc/fonts/fonts.conf</filename> aliases by default.</para>
    421463        </listitem>
    422464        <listitem>
    423465          <para><ulink
    424466          url="http://cle.linux.org.tw/fonts/FireFly">Firefly New Sung font</ulink>
    425           - This font provides Chinese coverage.  However,
    426           <application>Fontconfig</application> does not know about this font
    427           by default.</para>
     467          - This font provides Chinese coverage. This font is not listed in
     468          the <filename>/etc/fonts/fonts.conf</filename> aliases by default.
     469          </para>
    428470        </listitem>
    429471        <listitem>
     
    431473          url="http://cle.linux.org.tw/fonts/Arphic">Arphic fonts</ulink> -
    432474          A similar set of Chinese fonts to the Firefly New Sung font.
    433           <application>Fontconfig</application> knows about these fonts by
    434           default and will substitute them for generic family names.</para>
     475          These fonts are listed in the
     476          <filename>/etc/fonts/fonts.conf</filename> aliases by default.
     477          </para>
    435478        </listitem>
    436479        <listitem>
    437480          <para><ulink
    438481          url="http://sourceforge.jp/projects/efont/">Kochi fonts</ulink> -
    439           These provide Japanese characters, and
    440           <application>Fontconfig</application> knows about these fonts by
    441           default.</para>
     482          These provide Japanese characters, and they are listed in the aliases
     483          in <filename>/etc/fonts/fonts.conf</filename> by default.</para>
    442484        </listitem>
    443485        <listitem>
    444486          <para><ulink
    445487          url="http://kldp.net/projects/baekmuk/">Baekmuk fonts</ulink>
    446           - These fonts provide Korean coverage, and
    447           <application>Fontconfig</application> knows about these fonts by
    448           default.</para>
     488          - These fonts provide Korean coverage, and they are listed in the
     489          aliases in <filename>/etc/fonts/fonts.conf</filename> by default.
     490          </para>
    449491        </listitem>
    450492      </itemizedlist>
     
    466508      DejaVu is a replacement for Bitstream Vera fonts, it can be substituted
    467509      for that family.  Visually inspect the <filename>fonts.conf</filename> to
    468       see how fonts are grouped together under the generic family names and a
    469       preference list is created.  To replace Bitstream Vera with DejaVu, as the
    470       <systemitem class="username">root</systemitem> user:</para>
     510      see how fonts are grouped together under the generic family names within
     511      &lt;alias&gt; tags and a preference list is created within &lt;prefer&gt;
     512      tags. To replace Bitstream Vera with DejaVu, run the following command as
     513      the <systemitem class="username">root</systemitem> user:</para>
    471514
    472515<screen role="root"><userinput>sed -i 's/&lt;family&gt;Bitstream Vera/&lt;family&gt;DejaVu/' /etc/fonts/fonts.conf</userinput></screen>
     
    478521 -->
    479522
    480     <para condition="html" role="usernotes">User Notes:
    481     <ulink url='&blfs-wiki;/XWindowSystemComponents'/></para>
     523    <para>To see which fonts will be used as the generic fonts in your locale,
     524    run the command <command>fc-match monospace</command>. Substitute "sans" or
     525    "serif" to see the fonts that will be used for those aliases.
     526    </para>
    482527
    483528    </sect3>
Note: See TracChangeset for help on using the changeset viewer.